views:

244

answers:

2

Hi

Recently i am working on migrating the ASP.NET Web application to MVC.

I am wondering if there is any equivalent of ASP:Timer control in ASP.NET MVC Framework. So that this Timer control can automatically check for a particular value from the Database once in every couple of Seconds(that we specify).

If there is no equivalent of Timer control in MVC, Are there any other ways to implement this.

Appreciate your responses.

Thanks

+4  A: 

You could use a jQuery Timer

http://plugins.jquery.com/project/timers

and activate an ajax call every time the timer triggers

http://api.jquery.com/category/ajax/

pdr
+2  A: 

You can use JavaScript setInterval method to invoke an Ajax request and fetch contents from the database.

azamsharp