Reading deom App.config in VS2005

hi,
can we use this method  

"System.Configuration.ConfigurationSettings.AppSettings['Key'] "

to retrieve the value of key value pair in VS 2005.

Thanks in Advance.



Answer this question

Reading deom App.config in VS2005

  • AkoSam


    hi Jangu,
          that technique was already obsolute in 2.0. you have to use like this: 'System.Configuration.ConfigurationManager.AppSettings["yourVal"]' of System.Configuration namespace. but, before this, you need to add that namespace manually to your project.

    HTH,
    myo zaw



  • Reading deom App.config in VS2005