It sounds like you should consider using multithreading.
By running the long process on a separate thread, you free up the browser to
do other things, such as display the current status of the task.
That way the browser will respond immediately with a new page and can
entertain the user while they wait with an animation or status bar (and no
You can have the browser refresh a status bar or animation by putting an
HTML line like this in your code:
<META HTTP-EQUIV="refresh" CONTENT="3">
That will cause the browser to refresh every 3 seconds (and you can check
the status of the operation each time and redirect to a "done" page when
Here's more details:
I hope this helps,
Steve C. Orr, MCSD
> I would like to prevent a button from firing multiple events on the server
> when the button is clicked multiple times. The server processing is
> some time, and users are getting impatient and resubmitting.
> Adding an onclick attribute to specify a client script function worked
> but I still couldn't prevent the server submit event from happening.
> Thanks, anyone...