|
External application variables |
|
|
|
Friday, 18 August 2006 |
|
Using this you can configure some variables or constants in the web.config file to use in you project code files: (This works for ASP.NET 2.0 version) //1- use the <appSettings> tag to put your site configurations or constants <appSettings> ... <add key="emailAdmin" value="
This email address is being protected from spam bots, you need Javascript enabled to view it
" /> <add key="anyName" value="anyText" /> ... </appSettings> ...
//2- howto use: string anyName = ConfigurationManager.AppSettings["anyName"]; |
|
Last Updated ( Tuesday, 31 October 2006 )
|