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