<%@ Page Language="C#"%>
<script language="C#" runat="server">
	void SubmitBtn_Click(Object sender,EventArgs e)
	{
		Message.Text=TextBox1.Text+"</span>：您好！<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;欢迎光临ASP.NET，你的勇敢和挑战精神会让你积极进取。";
	}
</script>
<html>
<head>
<title>我的第1个ASP.NET文件</title>
</head>
<body>
	<form runat="server">
		亲爱的读者，请留下您的姓名：
		<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
		<asp:Button ID="Button1k" text="确定" OnClick="SubmitBtn_Click" runat="server"></asp:Button>
		<hr /><br />
		<asp:Label id="Message" runat="server" style="color:red" />
	</form>
</body>
</html>
