jorame
jorame

Reputation: 2207

How to refresh a page without loading the page into the browser?

Is there a way to refresh/reload a page in ASP.NET without actually loading the page? I need the page to reload every 5 minutes but this will not be loaded by any user.

Thank you

Upvotes: 3

Views: 336

Answers (2)

Thomas C. G. de Vilhena
Thomas C. G. de Vilhena

Reputation: 14595

The simplest way of doing it is to use a html meta tag that instructs the page to refresh after a given time interval (in seconds):

<meta http-equiv="refresh" content="30" />

Upvotes: 7

Jeremy Thompson
Jeremy Thompson

Reputation: 65742

Sounds like you want to use ASP.Net Cache. Use the @OutputCache directive with a duration.

Setting the Cacheability of a Page

Upvotes: 1

Related Questions