Hi, I am trying to edit different sections of the web.config file. I can gain access to configSections that I have defined using ConfigurationSettings.GetConfig(People/owner) in my code when the web.config file is as follows:-
... <configSections> <sectionGroup name="People"> <section name="owner" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false" /> <section name="seller" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false" /> </sectionGroup> </configSections> <!-- Custom application settings. --> <People> <owner name="Joe" age="30"/> <seller name="Jack" age="20"/> </People> What is the best way to go about changing Joe's name through my C# web application? Also I am having difficulties in accessing any of the sections within the system.web section. How can I access and edit a value for example:- <sessionState Cookieless="false"> I have tried using bool nocookies = Session.Cookieless but I am looking for a generic method like ConfigurationSettings.GetConfig(section/value). Any help would be greatly appreciated. Kerry You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.