|
|
Add the following code in the Page_Load event:
C#
protected void Page_Load(object sender, EventArgs e)
{
TimeSpan ts = new TimeSpan(0, 0, 0, 5);
System.Threading.Thread.Sleep(ts);
}
VB.NET
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim ts As New TimeSpan(0, 0, 0, 5)
System.Threading.Thread.Sleep(ts)
End Sub
Note: Avoid using this approach too much in a Production environment.
'Like' us on our FaceBook page if you find this blog useful. Thanks!
Did you like this post?
|
|
|
||
|
|
|
|
Save on Delicious |
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |





comments
0 Responses to "How to do a Page PostBack With a Delay"Post a Comment