Server Error in '/' Application.
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).]
System.Web.UI.ClientScriptManager.EnsureJqueryRegistered() +2280926
System.Web.UI.WebControls.BaseValidator.RegisterUnobtrusiveScript() +10
System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +9639589
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440
Now, everything worked fine, right up until I added this line of code:
<asp:RequiredFieldValidator Class="error" ID="rfv_name" ControlToValidate="txt_name" Text="Please Enter a Value" runat="server" />
Anyone know what it is? I don't have an jQuery elements in my code, and am using VS 2013 if that helps.
Here is the full Panel of code:
<asp:Panel ID="pnl_bugform" runat="server"> <form method="post" runat="server"> <asp:Label ID="lbl_name" Text="Your Name" runat="server" /> <asp:TextBox ID="txt_name" width="250px" runat="server" /> <asp:RequiredFieldValidator Class="error" ID="rfv_name" ControlToValidate="txt_name" Text="Please Enter a Value" runat="server" /> <br /><br /> <asp:Button ID="btn_submit" runat="server" Text="Submit" onclick="btn_submit_Click" /> </form> </asp:Panel>