<html><body>
<form runat="server">
<asp:Label id="lblMessage" runat="server" /><br>
<asp:Panel id="Panel1" runat="server">
<table>
<tr>
<td valign="top">Phone (<i>xxx-xxxx</i>):</td>
<td valign="top">
<asp:TextBox id="tbPhone" runat="server"
size=11 /><br>
<asp:RegularExpressionValidator runat="server"
ControlToValidate="tbPhone"
ValidationExpression="[0-9]{3}-[0-9]{4}"
ErrorMessage="That is not a valid phone" />
</td>
</tr>
<tr>
<td colspan="2" valign="top" align="right">
<asp:Button id="Submit" runat="server"
text="Add" />
</td>
</tr>
</table>
</asp:Panel>
</form>
</body></html>
|