mr_zack Posted February 17, 2003 Posted February 17, 2003 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 Quote
*Gurus* Derek Stone Posted February 17, 2003 *Gurus* Posted February 17, 2003 (edited) Pass a section name and a key to ConfigurationSettings.GetConfig(). 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] Edited February 17, 2003 by Derek Stone Quote Posting Guidelines
mr_zack Posted February 17, 2003 Author Posted February 17, 2003 Thanks very much! Derek, Thanks for you quick responce! Zack Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.