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
public ActionResult Index() { return View(); } public ActionResult Test(string Name) { return RedirectToAction("Index"); }
Return View Directly displays your view but
Return View
view
Redirect ToAction Action is performed
Redirect ToAction