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?
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.
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 :)
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
is working on a reply...