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()...

Advertisement

Similar Posts

  • Build and publish .Net 2.0 projects with NAnt and the MSBuild task - level 200 more
  • ASP.NET: What is the function of FindControl method? more
  • ASP.NET: causing a postback after modal dialog is closed more
  • Using the XmlDataSource Data property for easy samples more
  • Working with Html in XmlDataSource XML Data Source Files more
  • extending RSS format with namespace and use it with IE7 RSS API more
  • Adding CoComment support to Community Server 2.1 more
  • Editable GridView & Row Level Binding more
  • Captcha Control more
  • Collaborative Application Markup Language (CAML) more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD