Reliably adding Controls or Markup before or after an ASP.NET Control?

Posted by: Rick Strahls WebLog, on 28 May 2006 | View original

In my last post I was waxing on about the problems with <%= %> markup in pages and content containers and the inability to use Control.Controls.Add() to add controls dynamically at runtime. If you do this you get a nasty error message that 'The Control Collection cannot be modified because the control contains code blocks'.   To put this in context, what I'm trying to do is to dynamically generate binding error messages as controls are unbound from databinding, and then display them without...

Advertisement

Similar Posts

  • CS Dev Guide: Add new page or user control to Control Panel more
  • ASP.NET 2.0 Client Validation Javascript Bug more
  • CS Dev Guide: Add new page or user control to Control Panel more
  • Templates - Part 1 more
  • Creating a Step-by-Step User Interface with the ASP.NET 2.0 Wizard Control: Improving and Customizing the User Experience more
  • ASP.NET 2.0 Web Parts Portal - Part 1 - The Basics more
  • My Top 10 Cool Features Found in 3.2/4.0 more
  • Interesting bug in Saxon.NET/Mono/OSX usage more
  • Wondering where the latest build is more
  • ASP.NET Rendered Controls vs. Composite Controls - I prefer to avoid rendered controls - level 200 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