Try our conversational search powered by Generative AI!

how to redirecting to a certain page


How do I redirect to a certain page which is a subpage of startpage? I tried the follwing without any better luck:


PageData pd = EPiServer.DataFactory.Instance.GetPage(EPiServer.Core.PageReference.StartPage);
  object thePage = pd.Property.Get("PageX");

May 31, 2011 9:29

var pageRef=(pd.Property.Get("PageX") as PropertyPageReference);

if (!PageReference.IsNullOrEmpty(pageRef.PageLink))


Data pd2 = EPiServer.DataFactory.Instance.GetPage(pageRef.PageLink);




But you need to know that its not allowed to redirect from the firstpage based on host

May 31, 2011 9:55
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.