日期:2014-05-17  浏览次数:20412 次

UpdatePanel 进行更新操作的,updatepanel外面的的事件会被阻塞,怎么解决
HTML code

<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>




C# code

  protected void Button1_Click(object sender,EventArgs e)
 {
    Thread.Sleep(10000);
    Label1.Text = System.Now.ToString();
  }  



点击button1获取时间的这段间隔里面点击 a 来跳转 要等到这个页面上得时间加载完,才能跳转
如何在点击 超链接的时候 立即跳转啊


------解决方案--------------------
探讨

我当然测试了
我的意思是说异步进行的时候 你点击更新区域外面的链接
要等到异步操作完成才会跳转
不是立即跳转,我现在需要点击外面的链接 能立即跳转
不是你说的那样的