Embedding JavaScript Strings from an ASP.NET Page

Posted by: Rick Strahls WebLog, on 14 Jul 2007 | View original | 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: 1901 | Hits: 139

Similar Posts

  • WebResource access in ASP.NET MVC more
  • ASP.NET Master Page Advice, Tips, and Tricks more
  • DotNetNuke Nav Menu Skinning - 11 Videos more
  • BLinq - Linq to Bing Search APIs more
  • Getting and Setting Query String Values in JavaScript more
  • Reporting Release History : Q2 2009 SP1 (version 3.1.9.807) more
  • ASP.NET 4 Beta 2 - New Version, New Docs, New MSDN Site ! more
  • CodeDigest.Com - Articles,FAQs, Codes, News - Aug,2009 more
  • Silverlight 3 Navigation: Dynamically Loaded Pages Now MEF Powered! more
  • Adding Persistence to the .NETOOP Edit in Place control. 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