Accessing we.config from Sharepoint web part
- by philj
I have a VS 2008 web parts project - in this project is a web.config file:
something like this:
…….
In my web part I am trying to access values in the appSetting section:
I've tried all of the code below and each returns null:
string Owner = ConfigurationManager.AppSettings.Get("MFOwner");
string stuff1 =…