Embedding JavaScript Strings from an ASP.NET Page

Posted by: Rick Strahls WebLog, on 14 Jul 2007 | View original | NEW Bookmarked: 0 time(s)

I'm looking at a piece of code that's a custom control that embeds a bit of JavaScript into a page. Part of this JavaScript is generating some static string text directly into the page. I've been running this code for a while now as part of an application I'm working on with a customer. But a couple of days ago I ran into a couple of problems with this control and as it turns out the problem is that the JavaScript strings embedded into the HTML stream aren't properly encoded. The code used is something...

Advertisement
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1311 | Hits: 127

Similar Posts

  • ASP.NET MVC: DevExpress Mail Demo more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • Sneak Peek: ASP.NET Splitter Control more
  • Announcing the Microsoft AJAX CDN more
  • Create or Manage XPDL 1.0 & 2.1 packages using Aspose.Workflow more
  • Application Identifiers (AI) for EAN-128 barcode generation more
  • BLinq - Linq to Bing Search APIs more
  • WebResource access in ASP.NET MVC more
  • Aspose.Total for .NET Q3 2009 Released more
  • CodeDigest.Com - Articles,FAQs, Codes, News - Aug,2009 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