日期:2014-05-17 浏览次数:20456 次
<a href="www.baidu.com">点击跳转</a> <asp:UpdatePanel ID="UpdatePanel1" ruanat="server"> <ContentTemplate> <asp:Label ID="lanel1" ruanat="server"></asp:Label> <asp:Button ID="Button1" ruanat="server" Text="获取当前时间" onclick="Button1_Click" /> </ContentTemplate> </asp:UpdatePanel>
protected void Button1_Click(object sender,EventArgs e) { Thread.Sleep(10000); Label1.Text = System.Now.ToString(); }