Copied to clipboard

Flag this post as spam?

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


  • Andres Machado 1 post 71 karma points
    Aug 28, 2018 @ 14:52
    Andres Machado
    0

    Different controllers for partial views

    Hello, I've just started working with Umbraco, so I have a lot of questions. Right now I'm trying to use different controllers for partial views, is this possible? Thanks in advance!

  • Nik 1413 posts 6212 karma points MVP 3x c-trib
    Aug 29, 2018 @ 07:46
    Nik
    0

    Hi Andres,

    If you are looking to use Partial Views and wish to be calling actions on controllers in order to configure them you'll probably be wanting to look into Surface Controllers. These are a particular type of controller that exist within Umbraco that are designed for exactly there.

    https://our.umbraco.com/documentation/reference/routing/surface-controllers

    If you are looking to add something like a custom contact form then this tutorial here is a great example as well:

    https://codeshare.co.uk/blog/how-to-create-a-contact-form-in-umbraco-using-mvc-and-c/

    Cheers

    Nik

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies