Using RenderMVC and Surface controllers on same page
Hi,
I have a general question about structure of an Umbraco solution and using correct controllers.
At some point I need to implement custom routing, which is supported only by RenderMvcController. So the page renders using a RenderMvcController, however it also has a webform with search filters, which I decided to render using a child action in a SurfaceController. The form submits to the same SurfaceController and then redirects back to page.
Is it a completely wrong idea to use combination of RenderMvc and Surface controllers as described above? Would the answer change if I would add validation to the search filters form and needed to return CurrentUmbracoPage from submit action?
Using RenderMVC and Surface controllers on same page
Hi,
I have a general question about structure of an Umbraco solution and using correct controllers.
At some point I need to implement custom routing, which is supported only by RenderMvcController. So the page renders using a RenderMvcController, however it also has a webform with search filters, which I decided to render using a child action in a SurfaceController. The form submits to the same SurfaceController and then redirects back to page.
Is it a completely wrong idea to use combination of RenderMvc and Surface controllers as described above? Would the answer change if I would add validation to the search filters form and needed to return CurrentUmbracoPage from submit action?
Many thanks! Alex
is working on a reply...