Client/Browser
1. Web page first requested
Web Server/Server Side
2. Event Reference generated via GetCallbackEventReference method.
3. StartAsyncCall Javascript method constructed and registered on page via RegisterClientScriptBlock method.
Client/Browser
4. Web page displayed to user (Contains Javascript code to initiate async callback event)
5. Invoke async callback via StartAsyncCall Javascript method
Web Server/Server Side
6. RaiseCallbackEvent method is tiggered, passing in the arg parameter.
7. GetCallbackResult method is triggered, returning a string result to the client/browser.
Client/Browser
8. Executes the OnServerCallComplete Javascript method, passing the result of the GetCallbackResult method as arg and the call context as ctx.
9. Update browser display with results of async callback.
Note: Here
- StartAsyncCall is a JavaScript function in Serverside
- OnServerCallComplete is a JavaScript function in client side.
- GetCallbackResult and RaiseCallbackEvent methods are the members for ICallbackEventHandler Interface.