Click here to Skip to main content
15,906,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to maintain progress bar in my aspx page but that should contain more buttons based on button clicking and server response the progress bar will be display how can i maintain that in my page.

i searched lot of links but no one is having clear idea.

please help me.
Posted

one thing you can do is put your whole page inside update panel. then on every event your progress bar will run.
 
Share this answer
 
You can achieve it by using UpdateProgress inside a UpdatePanel.

Sample designer code
XML
<div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
    <%=DateTime.Now.ToString() %> <br />
    <asp:Button ID="Button1" runat="server" Text="Refresh Panel" OnClick="Button_Click" />
    <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" runat="server">
    <ProgressTemplate>
      UpdatePanel1 updating...
    </ProgressTemplate>
    </asp:UpdateProgress>
    </ContentTemplate>
    </asp:UpdatePanel>
</div>


Refer the

below MSDN link you will get more idea in Update progress
MSDN Link[^]

Thanks,
-RG
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900