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

后端 未结 7 1872
别那么骄傲
别那么骄傲 2020-11-30 02:35

I am trying to create dynamic meta tags in C# but it gives the following error:

The Controls collection cannot be modified because the control conta

7条回答
  •  [愿得一人]
    2020-11-30 03:28

    Just in case if you are using Telerik components and you have a reference in your javascript with <%= .... %> then wrap your script tag with a RadScriptBlock.

     
       
    
    

    Regards Örvar

提交回复
热议问题