MVC 2 : PartialView not working in IE & Output Cache settings


ASP.NET MVC Output Caching

[OutputCache(Duration=0, VaryByParam=”None”)]
public ActionResult Register()
{
string registerStage = GetStage();

switch (registerStage)
{
case “1”:
return View(“Register1”);
case “2”:
return View(“Register2”, UserDetailsVM);
case “3”:
return View(“Register3”, UserDetailsVM);
case “4”:
return View(“CancelClicked”);
default:
return View(“NotFound”);
}
}

 

Further : http://guyellisrocks.com/coding/asp-net-mvc-output-caching/ 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s