Copied to clipboard

Flag this post as spam?

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


  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 10, 2013 @ 15:59
    Dirk De Grave
    0

    @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

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 10, 2013 @ 16:35
    Jeroen Breuer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft