MVC Important
Caching
public ActionResult Index()
{
Thread.Sleep(5000);
return View();
}
[OutputCache(Duration = int.MaxValue, VaryByParam = "id")]
public ActionResult Index(int id,string message)
{
Thread.Sleep(5000);
return View();
}
--------------------------------------------
Page Navigation
return Redirect("http://www.website.com");
return RedirectToAction("Index", "Home");
No comments:
Post a Comment