View Single Post
  #5 (permalink)  
Old February 18th, 2009, 04:21 PM
zeronexxx zeronexxx is offline
Authorized User
 
Join Date: Dec 2008
Location: London
Posts: 50
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by louisa68 View Post
Hi,

I have a setup page which appears the first time a client runs the web site which prompts for server, dbname etc which then sets the connection string & some app settings in the web.config. How do I reload these settings so the user can carry on to the main site without making the user reopen the site?
Thanks for any help
Louisa

To me your approach is wrong if I have understood your question correctly. In above scenario you would not use web.config for storing the website configuration rather an XML File.

You will ask the user for the settings and store them in the XML file and load them back into Memory(cache) and you will use it from Memory there after again.

You can also make changes and save it to the XML configuration file again at runtime without need to of WebServer or App Pool restart.

Regards