Jump to content

Browser error


Guest aramatos

Recommended Posts

Guest aramatos

Hi. I´m a newbie on .net and I'm trying run this code but I have this message from the browser that its missing a semi-colon in the line 2.What's going wrong.tks.<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>I use win xp pro sp 3 an .net 3.5 and IE 7 :)

Link to comment
Share on other sites

  • 3 months later...
Hi. I´m a newbie on .net and I'm trying run this code but I have this message from the browser that its missing a semi-colon in the line 2.What's going wrong.tks.<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>I use win xp pro sp 3 an .net 3.5 and IE 7 :)
I don't know if it is javascript, vbscript. I'm sure your web page is think the same thing.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...