我的页面用了ajax中的updatapanel做局部更新!!
用户查询数据库中的数据时,在处理过程什么提示都没了!!
怎样才能在页面上做一个提示呢?例如在updatapanel中央出现一个提示正在更新的图标!!谢谢

解决方案 »

  1.   

    同意3楼用updateprogress.再加点label控件就更好了啊
      

  2.   

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    Loading...
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
      

  3.   

    例子
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    Loading...
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>这三个合起来用
      

  4.   

    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <img src="~/images/Loading1.gif" alt="显示图标" />
                <span style="font-size: 12px; color: Blue;">正在提取数据中,请稍后...</span>
            </ProgressTemplate>
        </asp:UpdateProgress>这个有gif图,动画更好。我用了。