I want to create a variable in web.config file and to use that variable in web forms. How can I achieve this??
in web.config:
<appSettings> <add key="message" value="Hello, World!" /> </appSettings>
in cs:
string str = ConfigurationManager.AppSettings["message"].ToString();
1.4m articles
1.4m replys
5 comments
56.9k users