<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="App003_EmptyWebForm.Login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Text="用户名"></asp:Label>
<asp:TextBox ID="txt_username" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="validate1" runat="server" ControlToValidate="txt_username" ErrorMessage="必填" ValidateRequestMode="Enabled"></asp:RequiredFieldValidator>
<br />
<asp:Label ID="Label2" runat="server" Text="密码"></asp:Label>
<asp:TextBox ID="txt_pwd" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="validate2" runat="server" ControlToValidate="txt_pwd" ErrorMessage="必填" ValidateRequestMode="Enabled"></asp:RequiredFieldValidator>
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" ValidateRequestMode="Enabled" />
</div>
</form>
</body>
</html>
=====================
上面是代码,哪里有问题???
页面自动加载的jquery文件找不到,问题是aspx页面自动加载的jquery文件在哪里设置,从哪里可以让aspx页面自动加载而不是手写,当然手写jquery引用客户端验证就没问题了。