Sandy Surwase

Sandy Surwase

  • NA
  • 287
  • 30.3k

validation control program Error vs2013

Jan 3 2015 1:16 PM
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    Name: <asp:TextBox id="name" runat="server" />
<br>
Age: <asp:TextBox id="age" runat="server" />
<br><br>
<asp:Button runat="server" Text="Submit" />
<br><br>
<asp:RequiredFieldValidator
ControlToValidate="name"
Text="The name field is required!"
runat="server" />
    </form>
</body>
</html>
Error message

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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974 

Answers (2)