Working around Controls.Add() and <%= %> Script Limitations with JavaScript
Posted by: Rick Strahls WebLog,
on 20 Jun 2006 |
View original
A while back I had run into a problem with script expressions (<% %> and <%= %>) and Controls.Add() functionality in ASP.NET pages. The problem is that if you have any sort of markup script inside of a container object that you’re calling Controls.Add() (or InsertAt())on, ASP.NET will complain that it can’t add any controls because of the script code.
This is a fairly major problem for generic code that wants to inject controls into the page dynamically. My scenario...