How to display a View from different controller in ASP.NET MVC 4 ?

Sometimes , it might be required to display a view from a different controller when developing website using ASP.NET MVC .

How to display a View from different controller in ASP.NET MVC 4 ?

This can be achieved by simply passing the view name along with the controller name to the return type of ActionResult like the wasy shown below.

return View("../Movies/AddMovie", model);

In the above example , Movies is a different controller .

%d bloggers like this: