I have a view (Index.cshtml) with a submit button. When the submit button is clicked, it calls an action (Action01) within the controller (TestController.cs) so at the end o
Also, you can just set the ViewName:
return View("ViewName");
Full controller example:
public ActionResult SomeAction() { if (condition) { return View("CustomView"); }else{ return View(); } }
This works on MVC 5.