How to pass a value from .NET Config File (WebConfig) to Javascript
You can pass a value from .NET Config File (WebConfig) to Javascript
by following the example below.
In Web.Config
In Your .cshtml
@{
ViewBag.ApplicationVersion = (string)System.Configuration.ConfigurationSettings.AppSettings["myApplicationVersion"];
}