Gaurav Pal

Gaurav Pal

  • NA
  • 306
  • 69.1k

Required Field Validator Problem

Aug 20 2015 3:29 AM
Hi
 
I am using RequiredFieldValidator in my code. 
 
<asp:TextBox ID="txtMobileNo" Width="321px" BorderColor="Black" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMobileNo" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
 
but i got following error at runtime
 

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

 
I am also put following code in webconfig file
 <appSettings> <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/> </appSettings>
but not change.
 
 

Answers (3)