London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
DataFactory.Instance has the events you are looking for.
First, register for this event in Application_Start to add initialization code in your app:
EPiServer.Web.InitializationModule.FirstBeginRequest
In that event, then attach to this event and do your magic from there:
EPiServer.DataFactory.Instance.SavingPage
10x for the replay.
question:
when i attach to this event it is in the global.asax and not in my page type
how do i get this handler to my page type also
The eventhandler of the saving is called in the global asax and i want the event handler in my page where the developer will write the code.
i can check the page type in global asax but i want just the single page type to get the save event
Webform ( the aspx ) is the same in the template, no ?
the Scenarioio is -> i want to get values from serverl properties and save them in an external DB
when the content editor saves the page
Ah ok, I mean the event handler can be a static method in any class so you can put it anywhere you feel is best in your solution. You just need the bootstrap in Application_Start since it is global and should only be initialized once.
hi
Wanted to know how i can attach a function to the save page event and write my custom
code
tried to overide the save page but it worked for one time and now nada
using CMS 5 R2 SP2