iam using update progress ajax control.its not working in page load

Last post 07-24-2008 2:14 AM by Vince Xu - MSFT. 3 replies.

Sort Posts:

  • iam using update progress ajax control.its not working in page load

    07-21-2008, 7:41 AM
    • Loading...
    • kathyani
    • Joined on 07-04-2008, 12:18 PM
    • Posts 19

    iam using update progresss control. iam having the controls contentplaceholder and literal control.
    whenever my page load i put
    system.threading.thread.sleep(10000).
    but its not showing LOADING message . update progress control is not working.
    how to resolve?

  • Re: iam using update progress ajax control.its not working in page load

    07-21-2008, 9:02 AM

    Refer to this sample.

    http://www.asp.net/ajax/documentation/live/ViewSample.aspx?sref=System.Web.UI.UpdateProgress1

    It has the thread.sleep code in button click event. Try the same in your code and see if it works.

    Hope this helps.

     

  • Re: iam using update progress ajax control.its not working in page load

    07-21-2008, 9:05 AM
    • Loading...
    • kathyani
    • Joined on 07-04-2008, 12:18 PM
    • Posts 19

    i dont have the buttons. iam having only content placeholders and literal control .how to do this.

    plz guide me code level

  • Re: iam using update progress ajax control.its not working in page load

    07-24-2008, 2:14 AM
    Answer

    Hi,

    Did you want to use Update Progress control during the first time page loading?

    Update Progress control is designed for post back. For example, button clicking triggers it to display the loading information.  When the code in Page_Load is performed at first time, Progress control hasn't been rendered into the page. So it can't be presented before the client is rendered.

    However, we can create another page and use JavaScript to display a div layer to display "Page Loading", then we can use XmlHTTPRequest to retrieve the page content all into the page content layer in the current page. Finally, hide the loading layer and display the page content layer. But this approach is feasible only if the page is static.

    Or we can create a new page and use IFrame to link the real page. It will display the loading div firstly. After the real page in IFrame is loaded, we can use JavaScript to hide the loading div.

    Hope it helps.

    Sincerely,
    Vince Xu
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter