about ConfigurationSettings
I would like to know where to get the value of adminPw. Is it from the database or from somewhere?
string adminPw = ConfigurationSettings.AppSettings["AdminPw"].ToString();
Thanks
[197 byte] By [
dummyagain] at [2007-11-20 10:03:01]

# 1 Re: about ConfigurationSettings
if getting administrator password was so easy to access
the security situation of win32 would be pretty dire indeed
# 2 Re: about ConfigurationSettings
The ConfigurationSettings.AppSettings collection gives access to settings defined for an application. Normally these reside in a .settings file in the application folder.
Edit
Oops, ConfigurationSettings.AppSettings is actually a collection for the <appSettings> tag in the configuration file (such as Web.config in an ASP.NET application, for example.) It has been deprecated in favor of the ConfigurationManager class.
# 3 Re: about ConfigurationSettings
app settings are stored in your app config (web config for web developers). in .net 1.1 you access these settings through ConfigurationSettings, in 2.0 and on, it accessed through ConfigurationManager (as has been mentioned).