KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I cache the output of the PartialViews in ASp.NET MVC 3? I know I can decorate the action with [OutputCache] attribute but what I just want to include the @OutputCache right into the PartialView as shown below: @OutputCacheAttribute @model MvcApplication1.Models.someViewmodel @{ ViewBag.Title = "Index"; } <h2>Index</h2> @Html.Partial("_MyPartialView")
Tags (comma-separated)
Save Edits
Cancel