ProgressBar在asp.net的GridView中显示

时间:2011-11-03 16:01:14

标签: asp.net gridview progress-bar

Gridview单元格中,我必须在ASP.NET中显示ProgressBar

我在ASP.NET 4.0中使用异步事件

你能引导我找到它的解决方案吗?

1 个答案:

答案 0 :(得分:1)

我认为你的意思是来自客户端ajax。如果没有,你能详细说明吗?如果您使用的是简单的更新面板,则可以在页面上删除“更新进度”控件,并在ProgressTemplate中将您想要显示的任何内容显示为“progress”。

 <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:UpdateProgress runat="server" id="PageUpdateProgress">
        <ProgressTemplate>
            Loading...
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel runat="server" id="Panel">
        <ContentTemplate>
            <asp:Button runat="server" id="UpdateButton" onclick="UpdateButton_Click" text="Update" />
        </ContentTemplate>
    </asp:UpdatePanel>
</form>
相关问题