Copied to clipboard

Flag this post as spam?

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


  • Barry Fogarty 493 posts 1129 karma points
    Sep 22, 2011 @ 03:15
    Barry Fogarty
    0

    Access masterpage properties in razor scripts

    Is there a way to set properties on a masterpage than can be accessed by my razor macros that live on that master page?  I have a member site and I need access to the member properties on a lot of my razor macros. I have a class where I retrieve my membertype properties.  I am looking for a way to instatiate this class once per page, to minimise the amount of DB trips required.

    Any suggestions welcome.

Please Sign in or register to post replies

Write your reply to:

Draft