简体   繁体   中英

Timers from ASP.NET to MVC Razor

I'm moving an app from ASP.NET/C# to MVC and I have some Timers <asp:Timer> I'm trying to find exactly the same tool for MVC ( Html5 or DevExpress ) but seems like there is not or at least my intellisense doesn't show it.

Anyone knows about it and can post the squema of it?

You will need to use Javascript yourself.

Take a look at window.setInterval() or one of the many jQuery timers.

Another option, that doesn't involve javascript is the HTML META tag.

example:
<meta http-equiv="refresh" content="30">

content is specified in seconds . META elements live within the HEAD element.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM