I want to create a variable in web.config file and to use that variable in web forms. How can I achieve this??
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- parameters in routing do not work MVC 3
- Grails External Configuration. Can't access to
- There is no ViewData item with the key 'taskTy
- TextBoxFor decimal
相关文章
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- How to get server path of physical path ?
- Cannot implicitly convert Web.Http.Results.JsonRes
- entity type has no key defined - Code first
You may try like this:
Then you can use
and use it like this:
in web.config:
in cs:
FYI: The accepted answers for accessing web.config data are considered "Obsolete" now and should be replaced with:
Example:
in web.config:
in c#:
Reference: ConfigurationSettings.AppSettings is obsolete, warning