What's the difference in ASP.NET MVC of RedirectToRoute and RedirectToAction?

Viewed 14740

What's the difference in ASP.NET MVC of RedirectToRoute and RedirectToAction? It's not clear what the difference is to me.

3 Answers

Redirect to route looks up the route table thats defined in global.asax and redirect to action redirects you to a specified controller/action.

that's about it really

Ideally I would use RedirectToRoute for Action Links/Images and RedirectToAction in Controller's Action to redirect to another Controller's Action.

Related