|
Rank: Member Groups: Member
Joined: 8/23/2007 Posts: 12
|
I am using the Progress bar control in a several pages to perform a time consuming process using the run task method.
The processes end OK and but although I include a final action (refresh the page totally or partially or close the window) in the run task method, this action is not performed.
When I try to redirect to other page (I get an error, because the page headers are already sent).
Could we tell how to refresh the page or close the window affer running the task?
Kind regards...Antonio
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
You can not do anything else inside RunTask event handler except for calling UpdateProgress. UpdateProgress is capable of transfer an additional string to the client. You will then handle the client side ClientSideOnProgress event. Inside that event handler you can inspect this addtional string value and act accordingly.
|
|
Rank: Member Groups: Member
Joined: 8/23/2007 Posts: 12
|
Thanks for your solution.
It works fine in almost all cases.
The only case I have problems is when a try to update an ajax panel in the same page (nothing happens).
Any clue?
Kind regards...Antonio
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
As stated in the previous post, you will not be able to do anything other than updating progress in RunTask event handler. So you will need to rely on other controls/events to work with your ajax panel, or whatever other solutions that relies on server event --- which would have nothing to do with the ProgressBar at all.
Thanks
|
|