Page.ResolveClientUrl Problem in Master Page? RRS feed

  • Question

  • Hi, I have used in my master page as follows:

       <script src="<%= Page.ResolveClientUrl("~/Scripts/jquery-1.8.3.js") %>" type="text/javascript"></script>

    I have created a menu control and added some item into that menu in the content page.

    While running the page, the following error occurred!

    The Controls collection cannot be modified because the control contain code blocks (i.e. <% ... %>)

    Please provide me the solution to solve this problem.

    • Moved by Kristin Xie Thursday, September 18, 2014 3:01 AM
    Wednesday, September 17, 2014 6:11 AM