1 Replies - 4151 Views - Last Post: 12 March 2009 - 09:45 AM Rate Topic: -----

#1 sandeep.narang24  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-March 09

How to add web.config in WPF

Post icon  Posted 12 March 2009 - 04:56 AM

How to add web.config in WPF
Is This A Good Question/Topic? 0
  • +

Replies To: How to add web.config in WPF

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1642
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: How to add web.config in WPF

Posted 12 March 2009 - 09:45 AM

Add it like you would a normal ASP.NET project. The main difference is now you access it. In ASP.NET you access this way

using System.Configuration;

ConfigurationManager.AppSettings



With WPF you access it this way

using System.Configuration;

ConfigurationSettings.AppSettings


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1