Copied to clipboard

Flag this post as spam?

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


  • Pinal Bhatt 298 posts 390 karma points
    Feb 25, 2011 @ 10:14
    Pinal Bhatt
    0

    Macro Parammeters in Razor with 4.7 beta?

    Hi,

    Does anybody know if Macro Parameters are supported for razor based macros in 4.7 beta?

    If yes, how to read macro parameter in .cshtml razor script?

    Thanks & Regards,
    Pinal Bhatt

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Feb 25, 2011 @ 10:15
    Sebastiaan Janssen
    1

    Yup, see the other topic about this :-)

  • Pinal Bhatt 298 posts 390 karma points
    Feb 25, 2011 @ 10:20
    Pinal Bhatt
    0

    Thanks seb.

  • Pinal Bhatt 298 posts 390 karma points
    Feb 25, 2011 @ 10:38
    Pinal Bhatt
    0

    Following works fine

    @{var param = @Parameter.nameOfParameter;}

    or

    @(Html.Raw(Parameter.nameOfParameter))
Please Sign in or register to post replies

Write your reply to:

Draft