Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm not sure if it's possible. I want to get the value of some appSettings variables via a razor macro.
I know I can do it via a user control macro, but I don't want do add a new component to my site, I just want to do it with some inline code/macro.
Do you have any suggestion for me?
Thanks from advance!
Ben,
If you can do it from a user control, you should be able to do it from razor as well, it's just plain c#, so the same methods should be available inline or in your razor code.
Cheers,
/Dirk
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Access appSettings variables via razor macro
I'm not sure if it's possible. I want to get the value of some appSettings variables via a razor macro.
I know I can do it via a user control macro, but I don't want do add a new component to my site, I just want to do it with some inline code/macro.
Do you have any suggestion for me?
Thanks from advance!
Ben,
If you can do it from a user control, you should be able to do it from razor as well, it's just plain c#, so the same methods should be available inline or in your razor code.
Cheers,
/Dirk
is working on a reply...