How to Set up a website building page when working on live
Dear All, I am working on a live asp.net web application , Now I have some changes came into my project so I want to redirect a user on a custom page showing that the website is under maintenance how to do that..


Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 16, 2014, 7:02 PM EST
just write Response.Redirect("default.aspx", true); on page load of your page which is under construction.
change default.aspx with your custom page name that will show message page is under construction.
Danish HabibRank #2,024 · 715 reputationPosted Dec 16, 2014, 7:28 PM EST
Danish HabibRank #2,024 · 715 reputationPosted Dec 16, 2014, 7:28 PM EST
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 16, 2014, 7:49 PM EST
Hi Danish Habib,
If you want to set web.config file Apps seating value use following code
<appSettings>
<add key="AppKey" value="AppValue"/>
appSettings>
Then in page load or button click write following code
//Helps to open the Root level web.config file.
Configuration webConfigApp = WebConfigurationManager.OpenWebConfiguration("~");
//Modifying the AppKey from AppValue to AppValue1
webConfigApp.AppSettings.Settings["AppKey"].Value = "AppValue1";
//Save the Modified settings of AppSettings.
webConfigApp.Save();