After switching to .net 4.0, some javascript code from a third party gridview crashes. It has got something to do with HtmlEncode and UrlEncode now encode single quotation marks
So before some code on the page was inserted like this:
DataItem.GetMember('Id').Value
and now its like this: DataItem.GetMember('Id').Value
The gridview does an eval
on that line, and crashes with a syntax error now. I can't change the javascript code in that gridview.
Is there anyway to solve this, without going backwards like this?
<pages controlRenderingCompatibilityVersion="3.5" />
EDIT: the pages controlRenderingCompatiblityVersion doesn't fix this also. Single quotes are still encoded.