Answers for "mvc redirect to action with parameters"

2

mvc redirect to action with parameters

return RedirectToAction("Action","controller", new {@id=id});
Posted by: Guest on April-23-2020
0

mvc redirect to action with parameters

return RedirectToAction("Action", new { id = 99 });
Posted by: Guest on April-23-2020
0

mvc redirect to action with parameters

return RedirectToAction( "Main", new RouteValueDictionary( 
    new { controller = controllerName, action = "Main", Id = Id } ) );
Posted by: Guest on April-23-2020

Code answers related to "mvc redirect to action with parameters"

Browse Popular Code Answers by Language