Mega Code Archive

 
Categories / ASP.Net Tutorial / Configuration
 

Storing Custom Settings in the web config File

ASP.NET stores your own settings in the web.config file, in an element called <appSettings>.  <?xml version="1.0" ?> <configuration>     ...     <appSettings>         <add key="DataFilePath" value="C:\Shared" />     </appSettings>     ...     <system.web>     <!-- ASP.NET Configuration sections go here. -->     </system.web>     ... </configuration>