Call server function without post back using ICallbackEventHandler
Steps
- Implements the ICallbackEventHandler in the partial class of the code behind file.
- Create a client script in the aspx page to be called from server so result can be returned
- Use the ClientScriptmanager to get a reference to the client script you created
- ClientScriptmanager. RegisterClientScriptBlock fucntion
- a. to register the callback script that is used by the client elements to call the server
- b. to register the script reference we got for step3
- Create the RaiseCallbackEvent sub that is used to retrive client arguemnts

0 Comments:
Post a Comment
<< Home