Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex 14 posts 95 karma points
    Aug 01, 2016 @ 17:33
    Alex
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft