Results 1 to 3 of 3

Thread: [02/03] how to update webform?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    362

    Question [02/03] how to update webform?

    Maybe I should ask this in asp .net, but it seems there are many people reading at here, so .... Sorry for any inconvenience.

    I have a webform using asp .net. In the form, user clicks a button, then it creates a thread which does some computation. It will take a while to finish the computation. How can I change a label on the webform, so that it will show the progress?

    Right now, I use a timer. Every 5 seconds, check a value, then show the value in the label. How can I force the webform to postback?

    I'm using asp.net 1.1, so can't use ajax. Or ajax support 1.1?


    thanks

    bear

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [02/03] how to update webform?

    without using ajax, the only way you can get a postback is when the user clicks the button... after that, I don't know... However, if you want to know when the computation has finished on the server side, here is just an idea: you can use a timer to check for completion as you're already doing. Once the computation has finished, you can use javascript to navigate to a dummy page, and in this page load, you can set a global flag to signal that the computation is done, then redirect to whatever page you want to (the dummy page never shows up on the client browser).

  3. #3
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: [02/03] how to update webform?

    I like the redirecting to a different page idea as well. However, if you do want to use some sort of progress indicator, I guess you can look into these:
    http://www.codeproject.com/aspnet/progressbar.asp
    http://www.asp.net/ControlGallery/Co...204&tabindex=2
    http://www.aspfree.com/c/a/VB.NET/Ex...Bar-in-ASPNET/

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