iam using updateprogress control .it is not working in my page load?

Last post 07-24-2008 2:15 AM by Vince Xu - MSFT. 7 replies.

Sort Posts:

  • iam using updateprogress control .it is not working in my page load?

    07-21-2008, 7:48 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 updateprogress control .it is not working in my page load?

    07-21-2008, 8:28 AM
    • Loading...
    • farazsk11
    • Joined on 02-22-2006, 8:10 PM
    • Sharjah, UAE
    • Posts 1,128

    Hi,

    well I don't think it will work in this way as update progress control works with UpdatePanel and when the contorls inside the update panel postback to the server update progress enables and displays the message.

    Faraz Shah Khan
    MCP, MCAD.Net, MCSD.Net, MCTS-Win/Web, MCPD-Web
    Blog
  • Re: iam using updateprogress control .it is not working in my page load?

    07-21-2008, 8:39 AM
    • Loading...
    • kathyani
    • Joined on 07-04-2008, 12:18 PM
    • Posts 19
    i put  the updateprogrss control inside updatepanel control. in my page only content place holders.and literal button .plz guide me in codelevel?
  • Re: iam using updateprogress control .it is not working in my page load?

    07-21-2008, 9:09 AM
    Answer
    • Loading...
    • farazsk11
    • Joined on 02-22-2006, 8:10 PM
    • Sharjah, UAE
    • Posts 1,128

    Hi,

    Well first of all update progress is not to be placed inside update panel. Secondly you want to display the loading thing when you page loads not on some postback because of the control inside update panel. However, you can have a look at this link http://www.dhtmlcentral.com/script/script.asp?id=17

    Faraz Shah Khan
    MCP, MCAD.Net, MCSD.Net, MCTS-Win/Web, MCPD-Web
    Blog
  • Re: iam using updateprogress control .it is not working in my page load?

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

    Now i put the update progress control outside of the update panel.

    I dont have buttons .iam having only content placeholders.

    i wrote pageload sleep method its not working .

    plz guide me

  • Re: iam using updateprogress control .it is not working in my page load?

    07-22-2008, 5:04 AM
    • Loading...
    • kathyani
    • Joined on 07-04-2008, 12:18 PM
    • Posts 19
    plz give me reply iam waiting for u r reply.
  • Re: iam using updateprogress control .it is not working in my page load?

    07-22-2008, 7:59 AM
    • Loading...
    • farazsk11
    • Joined on 02-22-2006, 8:10 PM
    • Sharjah, UAE
    • Posts 1,128

    Did you try the link that I sent you, because I don't think update progress will work for page load events. Probably you have to go other way around.

    Faraz Shah Khan
    MCP, MCAD.Net, MCSD.Net, MCTS-Win/Web, MCPD-Web
    Blog
  • Re: iam using updateprogress control .it is not working in my page load?

    07-24-2008, 2:15 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 (8 items)
Microsoft Communities
Page view counter