AAlferez
AAlferez

Reputation: 1502

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?

Upvotes: 1

Views: 5452

Answers (2)

Sam Axe
Sam Axe

Reputation: 33738

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.

Upvotes: 0

Matt Houser
Matt Houser

Reputation: 36073

You will need to use Javascript yourself.

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

Upvotes: 4

Related Questions