Monday, April 29, 2013

jQuery Visual Studio Error : Unexpected character '$' ;Unexpected character '\'


When runat=”server” was included in the jQuery script src statement,this error was thrown.

<script type="text/javascript" src="jquery-1.7.1.min.js" runat="server"></script>

Error      2              Unexpected character '$'             C:\Users\rajesh.chandras\Desktop\MyProjects\WebSite5\jquery-1.7.1.min.js         2             
Error      5              Unexpected character '\'              C:\Users\rajesh.chandras\Desktop\MyProjects\WebSite5\jquery-1.7.1.min.js         2



Naturally, we do not want runat=”server” in any jquery code, which normally is meant to run on client.

No comments:

Post a Comment

 using Microsoft.AspNetCore.Mvc; using System.Xml.Linq; using System.Xml.XPath; //<table class="common-table medium js-table js-stre...