<Script Language="VB" Runat="Server">
Sub myButton_Click(ByVal sender As Object, ByVal e As EventArgs)
myLabel.Text = "Hello," &myTextBox.Text
End Sub
</Script>
<Html>
<Body>
<Form Runat="Server">
请输入你的姓名:
<Asp:TextBox Runat ="Server" ID="myTextBox" />
<Asp:Button Runat ="Server " ID="myButton" Text="确定" OnClick="myButton_Click" />
<BR><BR>
<Asp:Label Runat="Server" ID="myLabel" />
</Form>
</Body>
</Html>