We are trying to use common properties. settings on our cshtml build page. Var parameter is in tag (jQuery)
We can achieve properties.settings.default.OurSetting in our controller.
properties.settings.default.OurSetting
We looked at a few questions about SO, but they just gave examples to achieve this in the controller.
ex: Best practice for saving application settings in a Windows Forms application
How to use settings in Visual C #
http://www.codeproject.com/Articles/17659/How-To-Use-the-Settings-Class-in-C
So we are trying to do
var setting = '@(MyProjectName.Properties.Settings.Default.OurSetting)'
But this says that the name of the Property does not exist in the current context.
EDIT
At first we used appSettings from web.config, but because we want to change the setting without restarting the application.
Change the access modifier in the Settings.Designer parameter from internal to public.