Press enter to see results or esc to cancel.

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

I recently ran across the following ASP.NET exception: It was something I hadn’t encountered before and I couldn’t understand what was going on. It would probably help if I divulged some of the factors that contributed to me coming across this exception, so here goes. I was actually loading an ascx user control dynamically and …

Continue reading