Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
How do i redirect from a SurfaceController to RenderMvcController?
SurfaceController (named TestSurfaceController):
public ActionResult SurfaceAction(TestModel model){ return RedirectToAction("TestRenderMvc", "RenderAction", model); }
RenderMvcController (named TestRenderMvcController):
public ActionResult RenderAction(RenderModel model){ return CurrentTemplate(model); }
The RedirectToAction needs updating but i cant think to what?
I get the following error when i run this:
No route in the route table matches the supplied values.
I don't particularity want to add a route specifically for this so was hoping there was a umbraco return method available to a SurfaceController.
Just found RedirectToCurrentUmbracoPage() but this only allows query strings not a model.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Redirect with model from SurfaceController to RenderMvcController
Hi all,
How do i redirect from a SurfaceController to RenderMvcController?
SurfaceController (named TestSurfaceController):
RenderMvcController (named TestRenderMvcController):
The RedirectToAction needs updating but i cant think to what?
I get the following error when i run this:
I don't particularity want to add a route specifically for this so was hoping there was a umbraco return method available to a SurfaceController.
Just found RedirectToCurrentUmbracoPage() but this only allows query strings not a model.
is working on a reply...