Copied to clipboard

Flag this post as spam?

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


  • Sander van de Pas 74 posts 147 karma points
    Aug 16, 2019 @ 10:12
    Sander van de Pas
    0

    Use of Url.Action in Umbraco v8

    Hi,

    I have a question.

    In Umbraco 7 you could use @Url.Action inside a View to render de link to an action in a controller.

    But since Umbraco 8 uses a constructor (with the UmbracoHelper) for every controller, I got the meessage "No parameterless constructor defined for this object" when I click te link.

    How can I create a link to a method in a controller with @Url.Action in Umbraco v8?

    Thanks in advance.

    Grtz Sander

  • aleharo2003 1 post 21 karma points
    Jul 15, 2020 @ 03:08
    aleharo2003
    0

    hi Sander, I've been using this @Url.SurfaceAction<mySurfaceController>("actionName")

  • 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