<head>
<title>TextBox Control Example</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
void setLabelText ( object src, EventArgs e ) {
msg.Text = myTextBox.Text;
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2>TextBox Control Example</h2></div>
<!-- #include virtual="~/shared/viewsrc_top.inc" -->
<hr size=1 width=92%>
<div align="center">
<form runat="server">
<p><asp:textbox id="myTextBox" width="200px" runat="server"
text="Copy this text to the label" />
<asp:button text="Copy" onClick="setLabelText" runat="server" />
<p><b><asp:label id="msg" runat="server"
text="This is some text in a Label control." /></b>
</form>
</div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>