Delay

  • Thread starter Thread starter adish11
  • Start date Start date
A

adish11

Hi,

In Web Application I would like to create delay for 30 sec in the code to
enable external process to run. During the delay in application I would
like to show the user message like "Please wait while the data being
updated..."

Can u help me please with code lines?

Thank u very much for the help and the answer.
 
adish11 said:
In Web Application I would like to create delay for 30 sec in the code to
enable external process to run. During the delay in application I would
like to show the user message like "Please wait while the data being
updated..."

Can u help me please with code lines?

Basically you need to send a page with a refresh in, something like:

<META HTTP-EQUIV="Refresh" CONTENT="30; URL=http://myurl.com/">
 
Thanks for the answers,but..

I need to use delay in C# code in the same page between
the code lines.

I use System.Diagnostics to run external process and I want to show delay
message for user for 30 sec while the process r being executed.

I want to prevent from user going to other pages in application or doing
anything else, while the process still running.

Another thing I want the time for delay (30 sec) to be argument that taken
from web config in the project,so if the external process will be changed
the time delay can be changed also.

Thank u very much for the help
 
Thanks for the answers,but..

I need to use delay in C# code in the same page between
the code lines.

I use System.Diagnostics to run external process and I want to show delay
message for user for 30 sec while the process r being executed.

I want to prevent from user going to other pages in application or doing
anything else, while the process still running.

Another thing I want the time for delay (30 sec) to be argument that taken
from web config in the project,so if the external process will be changed
the time delay can be changed also.

Thank u very much for the help
 
adish11 said:
Thanks for the answers,but..

I need to use delay in C# code in the same page between
the code lines.

You can't, really. HTTP is fundamentally request/response - you should
start the processing in a background thread, finish the response, and
then on the next request check whether the process has finished or not.
I use System.Diagnostics to run external process and I want to show delay
message for user for 30 sec while the process r being executed.

I want to prevent from user going to other pages in application or doing
anything else, while the process still running.

The user is running a web browser. You don't get to control whether
they go elsewhere.
Another thing I want the time for delay (30 sec) to be argument that taken
from web config in the project,so if the external process will be changed
the time delay can be changed also.

Well you can make the refresh tag be generated according to your
config.
 
Thanks for the answers,but..

I need to use delay in C# code in the same page between
the code lines.

I use System.Diagnostics to run external process and I want to show delay
message for user for 30 sec while the process r being executed.

I want to prevent from user going to other pages in application or doing
anything else, while the process still running.

Another thing I want the time for delay (30 sec) to be argument that taken
from web config in the project,so if the external process will be changed
the time delay can be changed also.

Thank u very much for the help
 
Back
Top