我下載了這個jQuery驗證引擎從 http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/jQuery驗證引擎的ASP頁不能正常工作有了主文件
所有驗證除了確認密碼驗證工作正常它驗證所有的時間 wheather密碼匹配或不。
確認作品在個人頁面上完成,但不在主頁面的內容頁面中工作。
請幫我...
.aspx文件
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script src="Styles/jquery-1.6.min.js" type="text/javascript"></script>
<script src="Styles/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src="Styles/jquery.validationEngine.js" type="text/javascript"></script>
<link href="Styles/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
jQuery(document).ready(function() {
// binds form submission and fields to the validation engine
jQuery("#form1").validationEngine();
});
</script>
<form id="form1" runat="server">
<br />
<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" class="validate[required] text-input"></asp:TextBox>
<br /><asp:TextBox ID="TextBox2" runat="server" class="validate[required,equals[TextBox1]] text-input"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</asp:Content>
請發佈您的.aspx代碼 –