Thank you both for your help!
Falcon, your solution seems to fit better as I don't want to navigate to
another page but to close the message box right after the task has ended.
I began to implement your method but unfortunately the div section shows up
only after the dialog page was posted back. (I show the div by calling the
server-side code 'this.PleaseWaitDiv.Visible = false;')
Is there a way to display the div BEFORE the page is posted back? Do I have
to use client-side code for this?
Thanks!
"falcon" wrote:
Put your div with your message on the page and set its style.display = "none"
absolutely positioned where you want it.
When the user clicks the button, set the divs style.display = "block" and
call your long process.
when you get a return value from the process swap the divs display style back.
OR use a popup element or a modal dialog.
If your leaving the page anyway Brad's Method is better.
"Brad Roberts" wrote:
Man, I messed up that first sentence...oh well...
"Brad Roberts" wrote:
I something like use the following to accomplish this.
- A button on a web page is clicked by the user to initiate a long running
process (in my case a report in another window)
- The click event calls a "PleaseWait" page that displays a message about
the amount of time that is expected to elapse and a visible bar-ticker that
is incremented each second. This page also has a ReFresh META tag in it that
calls the "long processing page" after 3 seconds.
- While the long-running page is running on the server the user is
entertained by the moving bar in the browser. If the process takes more than
70 seconds I change the message on the screen to something like "Thank you
for your patience..."
- When the long-running page is finished processing it writes content to the
browser, replacing the PleaseWait page.