What is the best way to enter configuration parameters in Javascript in an MVC application? I have seen this done using ASP.NET web forms, but am not sure how to do this with MVC.
@using System.Configuration ... var checkTimer = @ConfigurationManager.AppSettings["CheckTimer"];
In Web.config:
<appSettings> <add key="CheckTimer" value="10000"/> </appSettings>
But in my processed output, I get the following:
var checkTimer = ;
jaffa
source share