1+ <% @ Page Language= " VB" AutoEventWireup= " false" %>
2+
3+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
4+ <html xmlns =" http://www.w3.org/1999/xhtml" >
5+ <head id =" Head1" runat =" server" >
6+ <title >Multiple Form Validation</title >
7+ <script type =" text/javascript" src =" http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script >
8+ <script type =" text/javascript" src =" http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js" ></script >
9+ <script type =" text/javascript" src =" jquery.validation.net.webforms.min.js" ></script >
10+ <script type =" text/javascript" >
11+ $ (function () {
12+ $ (" #aspForm" ).validateWebForm ({
13+ submitHandler : function (form ) {
14+ alert (" Called Submit Handler" );
15+ }
16+ });
17+ });
18+ </script >
19+ <style type =" text/css" >
20+ .error {
21+ color : red ;
22+ }
23+ </style >
24+ </head >
25+ <body >
26+ <form id =" aspForm" runat =" server" >
27+ <fieldset class =" form" id =" signup" >
28+ <div class =" something" >
29+ <ul ></ul >
30+ </div >
31+ <legend >Sign Up</legend >
32+ <p >
33+ <asp:Label ID =" uiFirstName" runat =" server" AssociatedControlID =" uxFirstName" Text =" First name:" ></asp:Label >
34+ <asp:TextBox ID =" uxFirstName" runat =" server" CssClass =" required" ></asp:TextBox >
35+ </p >
36+ <p >
37+ <asp:Button ID =" uxRegister" runat =" server" Text =" Sign Up" CssClass =" submit signup" />
38+ <asp:Button ID =" uxCancelRegister" runat =" server" Text =" Cancel" />
39+ </p >
40+ </fieldset >
41+ <fieldset class =" form" id =" login" >
42+ <legend >Login</legend >
43+ <p >
44+ <asp:Label ID =" uiUserName" runat =" server" AssociatedControlID =" uxUserName" Text =" User name:" ></asp:Label >
45+ <asp:TextBox ID =" uxUserName" runat =" server" CssClass =" required email" ></asp:TextBox >
46+ </p >
47+ <p >
48+ <asp:Label ID =" Label1" runat =" server" AssociatedControlID =" uxPassword" Text =" Password:" ></asp:Label >
49+ <asp:TextBox ID =" uxPassword" runat =" server" CssClass =" required" TextMode =" Password" ></asp:TextBox >
50+ </p >
51+ <p >
52+ <asp:Button ID =" uxLogin" runat =" server" Text =" Login" CssClass =" submit login" />
53+ <asp:Button ID =" uxCancelSignUp" runat =" server" Text =" Cancel" />
54+ </p >
55+ </fieldset >
56+ </form >
57+ </body >
58+ </html >
0 commit comments