扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:基督山 来源:yesky 2007年11月8日
关键字: Windows
<% public sub OnSubmit(source as Object, e as EventArgs) if Page.IsValid then '数据入库等操作 end if end sub %> <h3><font face="Verdana">订阅时尚生活杂志</font></h3> <form runat=server> <hr width=600 size=1 noshade> <center> <asp:ValidationSummary ID="valSum" runat="server" HeaderText="您必须填写完整所有的选项" DisplayMode="SingleParagraph" Font-Name="verdana" Font-Size="12" /> <p> <!-- sign-in --> <table border=0 width=600> <tr><td colspan=3> <table border=0 cellpadding=0 cellspacing=0 width="100%"> <tr><td> <font face=geneva,arial size=-1><b>Sign-In Information</b> </font> </td></tr> </table> </td></tr> <tr> <td align=right> <font face=Arial size=2>输入您的Email</font> </td> <td> <asp:TextBox id=email width=200px maxlength=60 runat=server /> </td> <td> <asp:RequiredFieldValidator id="emailReqVal" ControlToValidate="email" ErrorMessage="您的Email. " Display="Dynamic" Font-Name="Verdana" Font-Size="12" runat=server> * </asp:RequiredFieldValidator> <asp:RegularExpressionValidator id="emailRegexVal" ControlToValidate="email" Display="Static" ValidationExpression= "^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$" Font-Name="Arial" Font-Size="11" runat=server> 不是一个正确的Email 请输入一个正确的Email </asp:RegularExpressionValidator> </td> </tr> <tr> <td align=right> <font face=Arial size=2>密码:</font> </td> <td> <asp:TextBox id=passwd TextMode="password" maxlength=20 runat=server/> </td> <td> <asp:RequiredFieldValidator id="passwdReqVal" ControlToValidate="passwd" ErrorMessage="密码. " Display="Dynamic" Font-Name="Verdana" Font-Size="12" runat=server> * </asp:RequiredFieldValidator> <asp:RegularExpressionValidator id="passwdRegexBal" ControlToValidate="passwd" ValidationExpression=".*[!@#$%^&*+;:].*" Display="Static" Font-Name="Arial" Font-Size="11" Width="100%" runat=server> 密码必须包括下面中的一个 (!@#$%^&*+;:) </asp:RegularExpressionValidator> </td> </tr> <tr> <td align=right> <font face=Arial size=2>请再输入一次密码:</font> </td> <td> <asp:TextBox id=passwd2 TextMode="password" maxlength=20 runat=server/> </td> <td> <asp:RequiredFieldValidator id="passwd2ReqVal" ControlToValidate="passwd2" ErrorMessage="再输入一次密码. " Display="Dynamic" Font-Name="Verdana" Font-Size="12" runat=server> * </asp:RequiredFieldValidator> <asp:CompareValidator id="CompareValidator1" ControlToValidate="passwd2" ControlToCompare="passwd" Display="Static" Font-Name="Arial" Font-Size="11" runat=server> 两次输入的密码怎么不一样:) </asp:CompareValidator> </td> </tr> <tr><td colspan=3> </td></tr> <!-- personalization information --> <tr><td colspan=3> <table border=0 cellpadding=0 cellspacing=0 width="100%"> <tr><td><font face=geneva,arial size=-1> <b>Personal Information</b></font> </td></tr> </table> </td></tr> <tr> <td align=right> <font face=Arial size=2>电话:</font> </td> <td> <asp:TextBox id="phone" maxlength=20 runat="server" /> </td> <td> <asp:RequiredFieldValidator id="phoneReqVal" ControlToValidate="phone" ErrorMessage="Phone. " Display="Dynamic" Font-Name="Verdana" Font-Size="12" runat=server> * </asp:RequiredFieldValidator> </td> </tr> <tr><td colspan=3> </td></tr> <!-- Credit Card Info --> <tr> <td colspan=3> <font face=Arial size=2><b>Credit Card Information</b></font> </td> </tr> <tr> <td align=right> <font face=Arial size=2>Card Type:</font> </td> <td> <ASP:RadioButtonList id=ccType Font-Name="Arial" RepeatLayout="Flow" runat=server> <asp:ListItem>招商银行一卡通</asp:ListItem> <asp:ListItem>建设银行龙卡</asp:ListItem> </ASP:RadioButtonList> </td> <td> <asp:RequiredFieldValidator id="ccTypeReqVal" ControlToValidate="ccType" ErrorMessage="信用卡种类. " Display="Static" InitialValue="" Font-Name="Verdana" Font-Size="12" runat=server> * </asp:RequiredFieldValidator> </td> </tr> <tr> <td align=right> <font face=Arial size=2>Card Number:</font> </td> <td> <ASP:TextBox id=ccNum runat=server /> </td> <td> <asp:RequiredFieldValidator id="ccNumReqVal" ControlToValidate="ccNum" ErrorMessage="信用卡号. " Display="Dynamic" Font-Name="Verdana" Font-Size="12" runat=server> * </asp:RequiredFieldValidator> <asp:RegularExpressionValidator id="ccNumCustVal" ControlToValidate="ccNum" Display="Static" ValidationExpression="^\d{15}$" Font-Name="Arial" Font-Size="11" runat=server> 信用卡号错误 </asp:RegularExpressionValidator> </td> </tr> </table> <p> <input runat="server" type=submit value="注册"> <p> </form> </center> |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者