先设计注册界面
<style>
body
{
background-color:antiquewhite;
}
</style>
背景色
图像
<div>
<asp:Label ID="Label1" runat="server" Text="用户名"></asp:Label><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="用户名不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="只能填入数字!" ValidationExpression="[0-9]*" Display="Dynamic"></asp:RegularExpressionValidator>
<br />
<asp:Label ID="Label2" runat="server" Text="密 码:"></asp:Label><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox