There are two methods associated with Redirecttoroute in a controller class: Redirecttoaction () and Redirecttoroute ().
1, Redirecttoaction ()
? Go to another action of the same controller
protected Internal Redirecttorouteresult redirecttoaction (string actionname);
Public ActionResult Index () { return redirecttoaction ("List");}
? Go to the action of the specified controller
protected Internal Redirecttorouteresult redirecttoaction (stringstring controllername);
Public ActionResult Index () { return redirecttoaction ("List " Member " );}
? Go to Membercontroller's list action method and add "page" to this RouteValue value
protected Internal Redirecttorouteresult redirecttoaction (stringstringobject routevalues);
Public ActionResult Index () { return redirecttoaction ("List " Member " New 2 });}
2, Redirecttoroute ()
? Go to another action of the same controller
protected Internal Redirecttorouteresult Redirecttoroute (object routevalues);
Public ActionResult Index () { return redirecttoroute (new"List") });}
? Go to the action of the specified controller
Public ActionResult Index () { return redirecttoroute (new {controller="Member "List" });
? Go to Membercontroller's list action method and add "page" to this RouteValue value
Public ActionResult Index () { return redirecttoroute (new"Member") "List"3 });