Try our conversational search powered by Generative AI!

Change StartPage id in runtime

Vote:
 
Hi, does any one know if it is possible and how to change the Configuration.StartPage PageReference on the fly? We need to be able to switch sites from a EditTree plugin. The option is ofcourse to make a redirect but we want the editors to be able to do this. We would rather not have a listener. Any ideas?
#12624
May 09, 2006 16:09
Vote:
 
It can be done. Configuration["EPnStartPage"] = 222 //(PageReference.ID); Configuration.Persist(); But, since the data is stored in web.config and will be saved with the new value. This causes the web application in IIS to restart, resulting in a very long request and possible data loss if another editor is editing at the same time. So this is not something to do on a regular basis. /HAXEN
#14619
May 17, 2006 10:23
Vote:
 
exactly, we want to avoid that, the other thing is that it changes globaly. We want to change the MasterLanguage for a certain page/branch.
#14620
May 17, 2006 14:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.