Trying to include ThickBox (from http://jquery.com/demo/thickbox/) in an ASP.NET application.
Visual Studio is failing when I try to run the application with the error: js\ThickBox\jquery-1.2.6.min.js(11): error CS1056: Unexpected character '$'
Using Visual Studio 2008 and jquery 1.2.6
CS1056 is obviously a C# compiler error. This kind of thing happens when you put runat="server" in a client script include tag (Visual Studio attempts to compile your .js file as if it was C#). Just remove the runat="server" attribute and try again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With