Wanted to know how i can attach a function to the save page event and write my custom
tried to overide the save page but it worked for one time and now nada
using CMS 5 R2 SP2
DataFactory.Instance has the events you are looking for.
First, register for this event in Application_Start to add initialization code in your app:
In that event, then attach to this event and do your magic from there:
10x for the replay.
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 event args contains the page being saved.
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.