Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Anybody knows if it's possible to execute an action on a surface controller from a Razor script (which will be referenced by a macro and inserted in a RTE)?
From a template, I'd use this
@Html.Action("Action", "Controller")
but how to do this from a Razor view/script?
Or am I on the wrong track here?
Cheers,
/Dirk
Sorry I don't know how this is done in a Razor script, but if you can wait until v6 is out you can do this: https://groups.google.com/d/msg/umbraco-dev/w4-cnlWDXTk/udLLflab10IJ
So in v6 you can use partial views as macro's which can be inserted into the RTE.
Jeroen
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
@Html.Action("Action","Controller") equivalent in Razor script
Hi,
Anybody knows if it's possible to execute an action on a surface controller from a Razor script (which will be referenced by a macro and inserted in a RTE)?
From a template, I'd use this
@Html.Action("Action", "Controller")
but how to do this from a Razor view/script?
Or am I on the wrong track here?
Cheers,
/Dirk
Sorry I don't know how this is done in a Razor script, but if you can wait until v6 is out you can do this: https://groups.google.com/d/msg/umbraco-dev/w4-cnlWDXTk/udLLflab10IJ
So in v6 you can use partial views as macro's which can be inserted into the RTE.
Jeroen
is working on a reply...