<head>
<script language="c#" runat="server">
public string UserID{
	get{
		return uid.Text;//返回UserID属性值
	}
	set{
		uid.Text = value;//设定uid文本框的值
	}
}
public string PassWord{
	get{
		return Pass.Value;
	}
	set{
		Pass.Value = value;
	}
}
</script>
</head>
<p>请输入ID：<asp:TEXTBOX runat="server" id="uid"/>
<P>请输入密码：<input id="Pass" type=password size=10 runat=server> 
<P>再输入一次：<input id="RPass" type=password size=10 runat=server> 
      <asp:CompareValidator runat=server
            ControlToValidate="RPass"
            ControlToCompare="Pass"
            ErrorMessage="密码验证错误" />

