Wednesday, February 11, 2009

Call server function without post back using ICallbackEventHandler

Steps

  1. Implements the ICallbackEventHandler in the partial class of the code behind file.

  2. Create a client script in the aspx page to be called from server so result can be returned

  3. Use the ClientScriptmanager to get a reference to the client script you created

  4. 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
  5. Create the RaiseCallbackEvent sub that is used to retrive client arguemnts

0 Comments:

Post a Comment

<< Home