62,268
社区成员
发帖
与我相关
我的任务
分享
<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();
}
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<a href="http://www.baigoogledu.com/">点击跳转</a>
<asp:Label ID="lanel1" runat="server"></asp:Label>
<asp:Button ID="Button1" runat="server" Text="获取当前时间" OnClick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</form>