Copied to clipboard

Flag this post as spam?

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


  • sudeer 24 posts 42 karma points
    Feb 04, 2013 @ 12:32
    sudeer
    0

    Read Macro Property value in c#

    How to get and set the property value of a macro in C#.

    Ex : i created a macro of a user control and placed in master page template. Now i created a macro property in the template.

    Now how can i get or set the property value in the user control.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 04, 2013 @ 18:28
    Jan Skovgaard
    0

    Hi Sudeer

    What version of Umbraco are you using? I'm asuming 4.x - If so have a look at the documentation here http://our.umbraco.org/documentation/Reference/Management/Documents/ in the section called "Creating a Document and setting properties" you should find the answer :)

    If you're using v6 checkout the documentation for the new API's in the same section of our.

    Hope this helps.

    /Jan

  • sudeer 24 posts 42 karma points
    Feb 05, 2013 @ 06:39
    sudeer
    0

    Hi Jan,

    Thanks for your reply..

    We are using 4.7.0 version, and we tried the same way which is posted in the url given by you but still we are unable to read the property value in the page_init 

    Thanks

    Sudeer

     

  • Matthias 87 posts 173 karma points
    Feb 05, 2013 @ 08:15
    Matthias
    0

    Hi Sudeer,

    does your property setup in the macro look like in the screenshot?

    Matthias

  • sudeer 24 posts 42 karma points
    Feb 05, 2013 @ 09:37
    sudeer
    0

    Hi Matthias

    Yes, it is setup in the parameters list.

Please Sign in or register to post replies

Write your reply to:

Draft