ASP.NET AJAX - UpdateProgress control of UpdatePanel

Q.  You are writing a page that contains an UpdatePanel for partial-page updates. You want that user should get the message “Processing is going on, please wait.” that the update is processing only if the update takes longer than 5 seconds. Which actions should you take?
- Published on 27 Jul 15

a. Add a ProgressBar control to the page. Set the Interval property to 5000. Set the text property as “Processing is going on, please wait.”
b. Add a Timer control to the page. Set the Interval property to 5000. Set its text property to Processing is going on, please wait.”
c. Add an UpdateProgress control to the UpdatePanel. Set its DisplayAfter property to 5000. Set its ProgressTemplate contents to read “Processing is going on, please wait.”
d. None of the above.

ANSWER: Add an UpdateProgress control to the UpdatePanel. Set its DisplayAfter property to 5000. Set its ProgressTemplate contents to read “Processing is going on, please wait.”
 

    Discussion

  • Shiva   -Posted on 21 Sep 15
    You can use UpdateProgress control , when you want to show the system is processing your request while you wait for the partial-page update to complete. UpdateProgress control provides information in the form of graphics or text, so write read “Processing is going on, please wait.” In rogressTemplate tag. By default DispalyAfter Property time in millisecond so set it to 5000 millisecond.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)