Copied to clipboard

Flag this post as spam?

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


  • Dennis 33 posts 238 karma points
    Jan 10, 2014 @ 14:25
    Dennis
    0

    Call function from link

    Hi all, I'm new to Umbraco and have a question.

    I would like to create a link, when I hit the link I would like to run one of my razor Functions, is this even possible, because the link is clientside and razor is serverside. But in mvc you can use an actionlink to call a models action. Does Umbraco have some similar functionality, or can I somehow implement a similar functionality myself?

    Thanks in advance :)

     

     

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Jan 13, 2014 @ 09:37
    Jeavon Leopold
    0

    Hi Dennis,

    Welcome to Our.

    You have sort of answered your own question, you should use Mvc templating then you can create a SurfaceController which can execute a method from a ActionLink.

    Jeavon

Please Sign in or register to post replies

Write your reply to:

Draft