<script runat="server">
Sub Check(sender As Object, e As EventArgs)
if check1.Checked then
work.Text=home.Text
else
work.Text=""
end if
End Sub
</script>
<html>
<body>
<form runat="server">
<p>家庭电话:
<asp:TextBox id="home" runat="server" />
<br />
工作电话:
<asp:TextBox id="work" runat="server" />
<asp:CheckBox id="check1"
Text="与家庭电话一致" TextAlign="Right"
AutoPostBack="True" OnCheckedChanged="Check"
runat="server" />
</p>
</form>
</body>
</html>