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 62 posts 122 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

Please Sign in or register to post replies

Write your reply to:

Draft