Feb 17, 2003 #1 M mr_zack Newcomer Joined Feb 12, 2003 Messages 9 Location Houston Windows App question Hello, In ASP.Net I can get infromation from a config file. I know that I can have a config file in the bin dir: Like myapp.exe.config, but how do I get these settings? Can you provide an Example? Thanks Zack
Windows App question Hello, In ASP.Net I can get infromation from a config file. I know that I can have a config file in the bin dir: Like myapp.exe.config, but how do I get these settings? Can you provide an Example? Thanks Zack
Feb 17, 2003 #2 D Derek Stone Exalted One Joined Nov 17, 2002 Messages 1,875 Location Rhode Island, USA Pass a section name and a key to ConfigurationSettings.GetConfig(). C#: NameValueCollection oConfiguration = ConfigurationSettings.GetConfig("ApplicationSettings") as NameValueCollection; [edit]You don't need to pass a key, that's done once you have the NameValueCollection[/edit] Last edited: Feb 17, 2003
Pass a section name and a key to ConfigurationSettings.GetConfig(). C#: NameValueCollection oConfiguration = ConfigurationSettings.GetConfig("ApplicationSettings") as NameValueCollection; [edit]You don't need to pass a key, that's done once you have the NameValueCollection[/edit]
Feb 17, 2003 #3 M mr_zack Newcomer Joined Feb 12, 2003 Messages 9 Location Houston Thanks very much! Derek, Thanks for you quick responce! Zack