<% @ Page Language="C#" %>
<% @ Import Namespace="System.Data" %>

<Script Language="C#" Runat="Server">
public void sub_Click(Object sender,EventArgs e)
{
Page.DataBind();
}
</script>

<html>
<head>
<title>
第三例：信息的提交和显示
</title>
</head>

<body>
<form runat=server>
  请输入您的姓名：<asp:Textbox id="Tbox" runat="server"/>

<br>
<asp:Button id="sub" Text="提交" Type="submit" runat=server OnClick="sub_Click" />
<br><br>
<div align=Center>
<font size=6>Hi&nbsp;<font color=red><%# Tbox.Text %></font>,&nbsp;Welcome to Asp.Net!</font>
</div>
</form>
</body>

</html>