I am currently working on an asp.net 4 mvc application and I'm trying to work out the best way to redirect / refresh the parent page after a form is submitted in the child controller.
So in my main view I have
Main View
@Html.RenderAction("child")
Child View / Controller
[HttpPost]
public ActionResult Create() {
if (ModelState.IsValid) {
// Save
Save();
Response.Redirect(Request.Url.ToString()); <--- Redirects the main page hack
}
return PartialView();
}
What is the correct way to redirect / refresh the main page hosting the renderaction?
DotnetShadow