IandINSW
asked on
Adding Javascript to an ASP.NET page based on Environment Setting
Hello,
I have a Web.Config App.Setting which holds the following
<appSettings>
<add key="Environment" value="Development"/>
</appSettings>
I am then reading this value and depending the value I will read a particular JavaScript from a file.
i.e
<script src="~/Scripts/Development .js"></scr ipt>
or
<script src="~/Scripts/Test.js"></ script>
etc
I have a Web.Config App.Setting which holds the following
<appSettings>
<add key="Environment" value="Development"/>
</appSettings>
I am then reading this value and depending the value I will read a particular JavaScript from a file.
i.e
<script src="~/Scripts/Development
or
<script src="~/Scripts/Test.js"></
etc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.