Working around Controls.Add() and <%= %> Script Limitations with JavaScript

Posted by: Rick Strahls WebLog, on 20 Jun 2006 | View original | NEW Bookmarked: 0 time(s)

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

Advertisement
Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1962 | Hits: 158

Similar Posts

  • How To: Silverlight grid hierarchy load on demand using MVVM and RIA services more
  • format-DateTime with XSL more
  • How to display data from different tables using one data source more
  • Data-binding Telerik CoverFlow for Silverlight + some Routed Commands goodness more
  • Improving JavaScript Skills more
  • Formatting Text in RadControls for WinForms Q3 2009 more
  • ClientIDMode in ASP.NET 4.0 more
  • Ambiguous References in DefaultWsdlHelpGenerator.aspx more
  • Web.UI ASP.NET Grid: Synchronize Checkbox States with Row Selection more
  • Convert Web.UI ASP.NET Grid into a data entry spreadsheet 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