ASP.NET form using label

test user

New Member
I have to create an asp.net form using label. I found an example for this task and tried to run it but nothing from the expected result appeared. Do you have any idea what else should be done to run it? (I'm still at the very beginnig of asp.net.)Here is the code:\[code\]<%@ Page Language="vb" %><script runat="server">Sub submit(Sender As Object, e As EventArgs)label1.Text=txt1.TextEnd Sub</script><html><body><form runat="server">Write some text:<asp:TextBox id="txt1" Width="200" runat="server"/><asp:Button id="b1" Text="Copy to Label" OnClick="submit" runat="server"/><p><asp:Label id="label1" runat="server"/></p></form></body></html>\[/code\]
 
Back
Top