首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

updatapanel 怎么做提示信息

2011-12-22 
updatapanel如何做提示信息?我的页面用了ajax中的updatapanel做局部更新!!用户查询数据库中的数据时,在处

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

谢谢

[解决办法]
你点按钮后,显示“正在更新”,处理页中返回相关状态,处理完成后再显示“更新完成”
[解决办法]
用updateprogress
[解决办法]
<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>
[解决办法]
例子

C# code
<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> 

热点排行