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

Posted by: Rick Strahls WebLog, on 28 May 2006 | View original | Bookmarked: 0 time(s)

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
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 3790 | Hits: 585

Similar Posts

  • CodeDigest.Com Article,Codes,FAQs - April,2009 more
  • Handling Formats Based On Url Extension more
  • WPF Presence Controls for Office Communicator 2007 more
  • Getting started with the ASP.NET MVC framework (excerpt from ASP.NET MVC in Action) more
  • Delegating Decorators more
  • Tip/Trick: Creating and Using Silverlight and WPF User Controls more
  • Silverlight 2 Beta 1 Controls Available, including Source and Unit Tests more
  • Mix 08 Schedule Picks more
  • ASP.Net Framework - Create your own RouteHandler more
  • ASP.Net MVC Framework - Create your own IControllerFactory and use Spring.Net more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | 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