ASP.NET – Make a copy of the text you type in a textbox
<strong><html>
<head>
<span style="color: #0000ff;"><script language="VB" runat="server">
Sub SubmitBtn_Click(sender As Object, e As EventArgs)
Label1.Text = "Text1.Text = " & Text1.Text
End Sub
</script></span>
</head>
<body>
<h3><font face="Verdana">TextBox Sample</font></h3>
<span style="color: #008000;"><form runat="server">
<asp:TextBox id="Text1" Text="Copy this text to the label"
Width="200px" runat="server"/>
<asp:Button OnClick="SubmitBtn_Click" Text="Copy Text to Label"
Runat="server"/>
</span><p>
<span style="color: #008000;"><asp:Label id="Label1" Text="Label1" runat="server"/>
</form></span>
</body>
</html></strong>
You can
leave a response, or
trackback from your own site.
Leave a Reply
You must be logged in to post a comment.