菜鸟学堂
在线运行
源代码
<HTML> <HEAD></HEAD> <FONT FACE="Verdana, Arial, Helvetica" SIZE=2> <FONT COLOR=#0000ff><script runat="server"><br>Sub submit(sender As Object, e As EventArgs)<br> lbl1.Text="Your name is " & txt1.Text<br>End Sub<br></script></FONT><br><br><!DOCTYPE html><br><html><br><body><br><br><form runat="server"><br>Enter your name:<br><asp:TextBox id="txt1" runat="server" /><br><asp:Button OnClick="submit" Text="Submit" runat="server" /><br><p><asp:Label id="lbl1" runat="server" /></p><br></form><br><br></body><br></html><br> </HTML>
运行结果
在线运行
菜鸟学堂 edu.jb51.net