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

Posted by: Rick Strahls WebLog, on 20 Jun 2006 | View original | 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
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: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2434 | Hits: 242

Similar Posts

  • Data-binding Telerik CoverFlow for Silverlight + some Routed Commands goodness more
  • Ambiguous References in DefaultWsdlHelpGenerator.aspx more
  • Improving JavaScript Skills more
  • How to display data from different tables using one data source more
  • ClientIDMode in ASP.NET 4.0 more
  • How To: Silverlight grid hierarchy load on demand using MVVM and RIA services more
  • Formatting Text in RadControls for WinForms Q3 2009 more
  • format-DateTime with XSL more
  • A generic way to find ASP.NET ClientIDs with jQuery more
  • Using Seadragon with ASP.NET MVC 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