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).
السؤال
همسة احساس
عند تشغيل هذه الصفحة يظهر لي :
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:
هذه كودات صفحة :
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Fashion.Register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.auto-style5 {
width: 256px;
text-align: center;
}
.auto-style6 {
width: 256px;
text-align: center;
font-size: x-large;
}
.auto-style7 {
text-align: right;
width: 455px;
}
.auto-style8 {
width: 455px;
}
.auto-style9 {
width: 256px;
text-align: left;
}
.auto-style10 {
font-size: small;
}
.auto-style11 {
text-align: right;
width: 455px;
height: 40px;
}
.auto-style12 {
width: 256px;
text-align: center;
height: 40px;
}
.auto-style13 {
height: 40px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table class="container">
<tr>
<td class="auto-style8"> </td>
<td class="auto-style6"><strong>Registration</strong></td>
<td> </td>
</tr>
<tr>
<td class="auto-style7"><strong>Username</strong></td>
<td class="auto-style5">
<asp:TextBox ID="TextBox1" runat="server" Height="30px" Width="250px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Username cannot be blank" ForeColor="Black" CssClass="auto-style10"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style7"><strong>E-Mail</strong></td>
<td class="auto-style5">
<asp:TextBox ID="TextBox2" runat="server" Height="30px" Width="250px"></asp:TextBox>
</td>
<td>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox2" CssClass="auto-style10" ErrorMessage="Incorrect E-mail" ForeColor="Black" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="auto-style11"><strong>Phone Number</strong></td>
<td class="auto-style12">
<asp:TextBox ID="TextBox3" runat="server" Height="30px" Width="250px"></asp:TextBox>
</td>
<td class="auto-style13"></td>
</tr>
<tr>
<td class="auto-style7"><strong>Gender</strong></td>
<td class="auto-style9">
<asp:DropDownList ID="DropDownList1" runat="server" Height="30px" Width="141px">
<asp:ListItem>Famle</asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
</asp:DropDownList>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style7"><strong>Password</strong></td>
<td class="auto-style5">
<asp:TextBox ID="TextBox4" runat="server" Height="30px" Width="250px" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox4" CssClass="auto-style10" ErrorMessage="Password cannot be blank" ForeColor="Black"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style7"><strong>Confirm Password</strong></td>
<td class="auto-style5">
<asp:TextBox ID="TextBox5" runat="server" Height="30px" Width="250px" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox4" ControlToValidate="TextBox5" CssClass="auto-style10" ErrorMessage="Same as Password"></asp:CompareValidator>
</td>
</tr>
<tr>
<td class="auto-style8"> </td>
<td class="auto-style5">
<asp:Button ID="Button1" runat="server" Height="30px" Text="Submit" Width="250px" OnClick="Button1_Click" />
</td>
<td class="auto-style16">
<asp:Label ID="Label2" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style8"> </td>
<td class="auto-style5"> </td>
<td> </td>
</tr>
<tr>
<td class="auto-style8"> </td>
<td class="auto-style5"> </td>
<td> </td>
</tr>
</table>
</asp:Content>
1 جواب على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.