码迷,mamicode.com
首页 > Web开发 > 详细

表单验证(ASP.NET+jquery.validationEngine.js)

时间:2014-08-15 12:02:28      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:style   http   java   io   for   ar   cti   div   

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="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>MyKit</title>
<link href="css/Style.css" rel="stylesheet" type="text/css" />
<link href="css/validationEngine.jquery.css" rel="stylesheet" />
<script src="js/jquery-2.1.0.js"></script>
<script src="js/jquery.validationEngine-zh_CN.js"></script>
<script src="js/jquery.validationEngine.min.js"></script>
<script type="text/javascript">
//表单验证
$(document).ready(function () {
$("#form1").validationEngine();
});

</script>
</head>
<body class="l_main">
<form id="form1" runat="server">
<div class="l_border">
<asp:Label ID="lbl_uname" runat="server" Text="用户名:"></asp:Label>
<asp:TextBox ID="txt_uname" runat="server" ToolTip="请输入用户名!" Width="180px" class="validate[required] text-input"></asp:TextBox>
<br />
<asp:Label ID="lbl_pwd" runat="server" Text="密码:"></asp:Label>
<asp:TextBox ID="txt_pwd" runat="server" ToolTip="请输入密码!" TextMode="Password" Width="180px" class="validate[required] text-input"></asp:TextBox>
<br />
<span></span>
<asp:Button ID="Button1" runat="server" Text="登录" Width="185px" OnClick="btn_login_Click"/>
</div>
</form>
</body>
</html>

表单验证(ASP.NET+jquery.validationEngine.js),布布扣,bubuko.com

表单验证(ASP.NET+jquery.validationEngine.js)

标签:style   http   java   io   for   ar   cti   div   

原文地址:http://www.cnblogs.com/sijie/p/jqueryvalidationEngine.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!