Results 1 to 4 of 4

Thread: Can you make ASP.NET pages postback to show progress bar or status?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    122

    Question Can you make ASP.NET pages postback to show progress bar or status?

    Hi, there.

    I am creating an ASP.NET application where users make some selections and the click a button to begin processing. The processing will take a long time and I'd like to be able to provide a progressbar or a label that will continually update throughout the processing.

    Is it possible to do this instead of just having the user wait and not know what the progress is? If it is possible, how?

    Thanks.

  2. #2
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    dietz, did you ever figure this out?

    I would also like to have a progress bar on my web application.

    Anyone have any ideas?

    Thanks
    David Wilhelm

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You will have to user client side scripting.

    Code:
    //Process starts here
    //.....do some processing 
    Response.Write("<script language='javascript'>YourFormName.YourLabel.innerText = 'SomeValueHere'</script>");
    Response.Flush();
    
    //.....do some more processing 
    Response.Write("<script language='javascript'>YourFormName.YourLabel.innerText = 'SomeValueHere'</script>");
    Response.Flush();
    
    //.....do some more processing 
    Response.Write("<script language='javascript'>YourFormName.YourLabel.innerText = 'SomeValueHere'</script>");
    Response.Flush();
    
    //etc...

  4. #4
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    Serge, if I'm reading this write that would send back a number as in the number percent done to a label on the form.

    How would you get an acutal progress bar in a web page.
    David Wilhelm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width