views:

14

answers:

1

Since POST request is separate, I have to do all the stuff I already did in a GET request again. So is it possible to redirect to the same page, but as a GET request?

I know it's kinda confusing...

[HttpPost]
public ActionResult Foo(...) {
    ...
    return View("Foo", modelWithErrorsData); // Returns POST, I need GET
}
+1  A: 

How about RedirectToAction()?

return RedirectToAction("Err", model);
p.campbell