When you want to alter a page programmatically you need to use EPiServers CreateWriteableClone on the working page. This is because the Page itself is readonly. Now, there’s plenty of info out there how to do this, but just to refresh your mind, here’s some code:
PageData clone = pd.CreateWritableClone(); clone.Property["MyProperty"] = "New value"; [...]













