How to Redirect To Action between Areas in ASP.NET MVC?

There are times when you want to redirect to a specific area from different area. In this, one can use the RedirectToAction method to achieve it and pass the parameter area.

How to Redirect between Areas in ASP.NET MVC?

public ActionResult Index()

{

return RedirectToAction("ActionName", "ControllerName", new { area = "AreaName" });

}

Leave Your Comment

Liked this content?. Please spread the word :)