<%= => tag is only going to execute if it 5 is within a
After to put the values on the config file, on 5 the page that you will use the value put 4 the java script this way bellow: You will 3 access the value in the java script as a 2 global, not necessary to declare it.
on the 1 web config:
</appSettings> <add key="varName" value="1" /> </appSettings>
on the html page:
<script> var varName= '@System.Configuration.ConfigurationManager.AppSettings["varName"]'; </script>
More Related questions