如题,怎么实现。

解决方案 »

  1.   

    ajax,你可以使用微软的ajax组件,在System.Web.Extentions里,把空间放置在类似<updatepanel>这样的容器中...
      

  2.   

    <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <Triggers>
      <asp:AsyncPostBackTrigger ControlID ="Button1" EventName ="Click" />
      </Triggers>
      <ContentTemplate>
      <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
      </ContentTemplate>
      </asp:UpdatePanel>
      <asp:UpdateProgress ID="UpdateProgress1" runat="server">
      <ProgressTemplate>
      <span style =" font-size:12px">数据更新中......</span>
      </ProgressTemplate>
      </asp:UpdateProgress>
      <asp:Button ID="Button1" runat="server" Text="Button" Width="143px" OnClick="Button1_Click" />

      <asp:updateprogress ID="UpdateProgress1" runat="server">
      <progresstemplate>
      <span lang="zh-cn">数据正在读取中..请稍后!!!</span>
      <input type="button" value ="取消" onclick="stop();" />
      </progresstemplate>   
      </asp:updateprogress>
      

  3.   

    还这么麻烦,最简单的是,在页面开始加载,让 LOADING显示,控件加载完毕就关闭就可以了
    比如protected void Page_Load(object sender, EventArgs e)
        {
    绑定数据控件
    隐藏LOADING
        }
      

  4.   

    一般的页面都是在服务器处理完请求,才发送到客户端,要全部加载完才显示的。
    但AJAX例外。