Reputation: 1117
Hi can anyone help with this.
I have an action result in an umbraco surface controller. if the model is valid i then want to redirect to another page, but for some reason nothing I try will redirect. the things I have tried so far are
return RedirectToAction("actionname", "controller", "routevalues")
return RedirectToAction("TeamUpdatePage", "TeamUpdatePageSurface", new { i = id });
return JavaScript("$(function() { window.location.href = '/contacts/teams/update?i=" + id + "'; });");
return this.Redirect("/contacts/teams/update?i=" + id);
return new RedirectResult("/contacts/teams/update?i=" + id, false);
return RedirectToUmbracoUrlResult("/contacts/teams/update?i=" + id);
return RedirectToCurrentUmbracoPage("/contacts/teams/update?i=" + id);
return new RedirectToRouteResult(new System.Web.Routing.RouteValueDictionary(new { action = "TeamUpdatePage", controller = "TeamUpdatePageSurface" }));
Response.Redirect("/contacts/teams/update?i=" + id);
return Redirect("/contacts/teams/update?i=" + id);
return new RedirectResult("/contacts/teams/update?i=" + id);
Can anyone tell me why nothing seems to work, and what I can use that will work?
thanks
Upvotes: 0
Views: 1002