Reliably adding Controls or Markup before or after an ASP.NET Control?
Posted by: Rick Strahls WebLog,
on 28 May 2006 |
View original | NEW 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...