|
-
Jun 28th, 2007, 06:38 PM
#1
Thread Starter
Hyperactive Member
[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
-
Jun 28th, 2007, 07:55 PM
#2
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).
-
Jun 28th, 2007, 09:19 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|