Goodspeed

导航

TimeTracker 寻宝

电子邮件检测
<asp:textbox id="Email" runat="server" Width="185px" MaxLength="50" CssClass="standard-text"></asp:textbox>
<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ErrorMessage="必须填写有效地址" ControlToValidate="Email"
Display="Dynamic" ValidationExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+"></asp:regularexpressionvalidator>
<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ErrorMessage="地址不能为空" ControlToValidate="Email"></asp:requiredfieldvalidator>

posted on 2004-07-23 14:40  Goodspeed  阅读(612)  评论(1编辑  收藏  举报