Comparison between data processing and Event Processing
|
Process the returned data |
Capture (process) Send back events |
Time |
First |
After |
Implementation Interface |
Iposbbackdatahandler |
Ipostbackeventhandler |
Uniqueid name feature |
Yes |
Yes |
Update Status |
Loadpostdata () |
None |
Page framework Call Notification Method |
Raisepostdatachangedevent |
Raisepostbackevent |
page framework
1. Sending Back
2. The page framework searches for the uniqueid value of the server control that implements ipostbackdatahandler in the sent content.
3. the page Framework calls loadpostdata on the control that implements this interface in sequence.
4. loadpostdata updates the control status and determines the changes
5. the page framework traces all controls that return true and calls raisepostdatachangedevent on these controls to trigger a change notification.
6. the page framework searches for the sending name corresponding to the uniqueid of the server control implementing ipostbackeventhandler in the sent content. (This step may be executed together with step 1. I am not quite clear about the detailed process. If you know, I would like to thank you very much for replying below :))
7. the page Framework calls the raisepostbackevent method of the control corresponding to the name (Note: This step is executed after Step 1 is completed)
8. the raisepostbackevent method triggers an event ( On eventname )