Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
EPiServer.Global.EPDataFactory.SavedPage += new EPiServer.PageEventHandler(Newsletter_SavedPage);
to the InitializeComponent-method in my Web User Control. In this way the Newsletter_SavedPage-method will only be called when the current page is saved.
My problem is that this event is called after the page_load-method. I want to do some text-processing in the savedpage-event and save the text in a property. In the page_load method I then want to fetch the generated text from the property. But as said, the order is now opposite.
If I put the SavedPage-event handling in the global.asax as you recommended, will this event be called before the page_load-method in my Web User Control? If so, that could be a solution.
Best regards
Bård