Understanding how <% %> expressions render and why Controls.Add() doesn't work
Posted by: Rick Strahls WebLog,
on 24 Jun 2006 |
View original
I’ve been trying to understand the problem of the inability to use Controls.Add() when <% %> tags are present in a container for some time and today as I’m working on this page I finally understand why this is a problem while I’m looking at the innards of the generated classes that ASP.NET 2.0 creates dynamically from the ASPX markup…
When a container contains static text or plain control definitions the entire control parsing is set up by using AddParseObject()...