Top "Redirecttoaction" questions

In ASP.

RedirectToAction with parameter

I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int. Later …

c# asp.net-mvc controller redirecttoaction
Redirect to Action in another controller

I have two controllers, both called AccountController. One of them, lets call it Controller A, is in an Area called …

asp.net-mvc asp.net-mvc-3 c#-4.0 redirecttoaction
RedirectToAction between areas?

Is there a way to redirect to a specific action/controller on a different Area?

asp.net-mvc asp.net-mvc-areas redirecttoaction
MVC - Passing Data with RedirectToAction()

I'd like to take data entered in an MVC user form and display it in a different view. The class …

c# asp.net-mvc redirecttoaction
ASP.NET MVC - How to Preserve ModelState Errors Across RedirectToAction?

I have the following two action methods (simplified for question): [HttpGet] public ActionResult Create(string uniqueUri) { // get some stuff based …

asp.net-mvc error-handling modelstate redirecttoaction http-redirect
How to redirect to a controller action from a JSONResult method in ASP.NET MVC?

I am fetching records for a user based on his UserId as a JsonResult... public JsonResult GetClients(int currentPage, int …

asp.net-mvc redirecttoaction jsonresult
How to get filter to redirect to another action?

RedirectToAction is protected, and we can use it only inside actions. But if I want to redirect in a filter? …

asp.net-mvc redirecttoaction
Use RedirectToAction in Web API

I am using RedirectToAction in my ASP.Net WebAPI application and I tried the following one. return RedirectToAction("AuthenticateUser", "AuthenticationServiceWebApi", …

c# redirect asp.net-web-api redirecttoaction
keep viewdata on RedirectToAction

[AcceptVerbs(HttpVerbs.Post)] public ActionResult CreateUser([Bind(Exclude = "Id")] User user) { ... db.SubmitChanges(); ViewData["info"] = "The account has been created."; …

asp.net-mvc viewdata redirecttoaction
RedirecttoAction with error message

I have a link on a grid in my AdminUsers view grid.Column(header: "", format: (item) => (condition ? Html.ActionLink("…

asp.net-mvc redirecttoaction