After migrating to .net 4.0, some javascript codes from a third-party gridview crash. It has something to do with HtmlEncode and UrlEncode now encode single quotes
So, before any code on the page was inserted as follows: DataItem.GetMember('Id').Value
and now itβs something like this: DataItem.GetMember('Id').Value
gridview does eval on this line and now fails with a syntax error. I cannot change javascript code in this gridview.
Is there a way to solve this problem without going back?
<pages controlRenderingCompatibilityVersion="3.5" />
EDIT: controlRenderingCompatiblityVersion pages also do not fix this. Single quotes are still encoded.
Erik dekker
source share