Aug 21, 2008

Using Timers in Asp.Net application.

client side functionalities window.setTimeout(functionName,1000);

This shud be placed inside a script tag.

First parameter 'functionName' is the function name or any functionality which should be called after s particular time.

Second parameter '1000' is the delay time in milli seconds. If we give 5000, then the function will be called after 5 seconds.

Server side(C#)

Thread.Sleep(1000); // In the next line u can call a function u need.
// functionName

No comments: