Progress bar in web application using c # and asp.net

I need to have 2 lines of execution in my application:

Can anyone help me with the code snippets and how can I proceed with my .aspx and .aspx.cs files to get these progress bars for my application?

0


a source to share


1 answer


You can use the UpdateProgress control for the busy indicator, which is very simple:

   <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
       <ProgressTemplate>
           <div>
               <img src="../Resources/Images/indicator.gif" />
               Loading...
           </div>
       </ProgressTemplate>
   </asp:UpdateProgress>

      



But the progress bar should do a bit of work. You will need to start a background thread to do this work, and you will need to send messages periodically to check the value of, say, a session variable to get the current progress.

+1


a source







All Articles