Quantcast
Channel: DotNetShoutout - Stories tagged with outputcache
Viewing all articles
Browse latest Browse all 5

Output caching with ASP.NET MVC Razor

$
0
0
Caching data greatly increase the website performance as its not going to do server round trip. I have already mentioned how you can use Output caching in web forms in earlier blog post here. Let’s see how we can do same thing with asp.net mvc. For this example I have used asp.net mvc razor. In asp.net mvc you can use OutputCache attribute to cache the output. Just like below.[OutputCache(VaryByParam="none",Duration=60)] public ActionResult Index() { ViewModel.Message = DateTime.Now.ToString(); ...
Shout it
Telerik – RadControls for WPF

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images