November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
PageReference pr = new PageReference("123");
PageData thePage = EPiServer.Global.EPDataFactory.GetPage(pr);
You can then get the PageData properties by accessing them like you tried, or directly: thepage["propertyname"]. It can be smart in advance to check if the properties exixts by using Exists(..) or IsValue(..). Check out the SDK for further information.
If you are not familiar with the EPDataFactory library, I will recommend you to take a closer look at it as well. It contains some of the most important and used methods in most EPiServer projects.
Good luck,
-Geir Allan Hove
Epinova AS
for (int i = 0; i < prArrayDate.Length; i++) { PageData thePage = new PageData((PageReference)prArrayArticle[i]); lblDummyData.Text += prArrayDate[i].ToString() + "
When I hit the line setting the HREF, it bombs saying that it's not set to an object (neither the LinkURL nor the Property). Am I doing this wrong? Am I supposed to be setting this to something other than PageData? Please help. Thanks, Jordy"; lblDummyData.Text += "" + thePage.Property["NewsTitle"].ToString() + "
"; lblDummyData.Text += thePage.Property["RightColumn_Content"] + "
"; //lblDummyData.Text += prArrayArticle[i] + "
"; }