The Controls collection cannot be modified because the control contains code blocks
I got this error when trying to dynamically add controls to a page that contained script blocks like these: <% %> I use these scripts blocks a lot in javascript to get the appropriate ClientID. Luckily there is a simple fix, replace <%=Control.ClientID %> with this DataBind like expression: <%#Control.ClientID %> Make sure you call [...]
More »
I am a .NET programmer first and foremost. But in my spare time I like to play around with PHP, Erlang, Haskell, F#,