Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent of ASP:Timer control in ASP.NET MVC?

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

like image 410
Rita Avatar asked Jan 23 '26 04:01

Rita


1 Answers

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/

like image 160
pdr Avatar answered Jan 25 '26 23:01

pdr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!