This project has moved. For the latest updates, please go here.
1

Closed

Problems with .Net 4.0

description

In my .NET 4.0 MVC project the scripts render with ' in the place of all single quotes (') chars.
The following thread here explains the problem in more detail and offers a potential solution:
http://forums.asp.net/p/1554455/3818604.aspx
Closed Sep 4, 2011 at 8:41 PM by ilmatte
close again after having assigned release

comments

ghlouw wrote Jul 28, 2011 at 12:49 PM

Found the solution. In .NET 4.0 the tabuilder class encodes it's attributes so if you use a tagbuilder.SetInnerText("script here") the java script gets all mangled up.

The solution is simply to use tagbuilder.InnerHtml = "script here";

I don't have the tools to make changes to the source code at Codeplex right now, but the change is in the AutocompleteExtensions.cs file on line 585:
Replace scriptTagBuilder.SetInnerText(initializeAutoComplete); with scriptTagBuilder.InnerHtml = initializeAutoComplete;

Hope that helps someone out there!

ilmatte wrote Jul 28, 2011 at 12:53 PM

Thank you very much for your help.
I'm on holiday now, as soon as I will be back home I will fix this.

wrote Jul 28, 2011 at 12:54 PM

wrote Sep 4, 2011 at 8:37 PM

ilmatte wrote Sep 4, 2011 at 8:40 PM

Fixed and released new version



** Closed by ilmatte 04/09/2011 12:37

ilmatte wrote Sep 4, 2011 at 8:40 PM

re open to assign release

wrote Sep 4, 2011 at 8:41 PM

wrote Sep 4, 2011 at 8:41 PM

wrote Feb 14, 2013 at 3:38 AM

wrote May 16, 2013 at 7:55 AM