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.
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.
is working on a reply...