An array of C#, PHP, and HTML programming articles, tutorials, and resources

Posts Tagged ‘ threading ’

Pause C# Web Application

by Victor | October 7, 2008 in C# | No Comments

Pausing a C# Web Application is easy and takes no more than one line of code.

Thread.Sleep(10000);

The number in RED is the number of milliseconds that the application will be paused. In the example above, the application will be paused for 10 seconds. Be sure to include at the top of your file:

using System.Threading;