Posts Tagged ‘Modify the web.config file at runtime’
Hello Friends,
One of my close friend asking me to change or modify the web.config file on fly or at runtime because his boss ask to have a page in their backoffice, where they can change the connection string of the database, or changing the session Timeout.
so here is the solution where you can get web.config files data and modify it and update web.config file.
first of all
keep the default settings and run the Default.aspx page. When you compile and run, a dialog box will be prompted to you concerning the web.config file, asking whether you want to modify the web.config to enable debugging, or to run the website without debugging (The site will be be opened using a temporary port created by visual studio). Make sure the first option is selected and click ok.
Hello ! I am Arjun Jadeja a Software Engineer by Profession. You can contribute and I will distribute your ideas through this site. Thanks and Enjoy