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
hello,
I try to show the following variable within our head section of the masterpage:
ConfigurationManager.AppSettings["Environment"]
How can i get it into my template?
I tried it by using <%= ConfigurationManager.AppSettings["Environment"] %>
Hi Dominik
If you don't mind using an XSLT based macro you should be able to fetch the above setting by following the example provided by Chriztian Steinmeier in this post: http://our.umbraco.org/forum/developers/xslt/13729-Best-way-of-getting-value-from-webconfig-in-XSLT?p=0#comment130586
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Show web.config setting in template / masterpage
hello,
I try to show the following variable within our head section of the masterpage:
ConfigurationManager.AppSettings["Environment"]
How can i get it into my template?
I tried it by using <%= ConfigurationManager.AppSettings["Environment"] %>
Hi Dominik
If you don't mind using an XSLT based macro you should be able to fetch the above setting by following the example provided by Chriztian Steinmeier in this post: http://our.umbraco.org/forum/developers/xslt/13729-Best-way-of-getting-value-from-webconfig-in-XSLT?p=0#comment130586
/Jan
is working on a reply...