Using the AjaxMethodCallback WebForms Control

This section describes using the method callback interfaces of this toolkit which includes the wwMethodCallback server control which makes it real easy to create code that calls class methods in server side code and return the results back to the client as JSON.

A number of mechanisms are available for calling server methods from the client:

  • AjaxMethodCallback server control
  • AjaxMethodCallback client class
  • ServiceProxy class to call WCF Services
  • Raw AJAX callbacks using any AJAX library

On the server you can choose to implement callback methods in:

  • HttpHandler deriving from CallbackHandler with [CallbackMethod] Attributes
    (best performance and recommended approach)
  • Page Methods using [CallbackMethod] Attributes
  • In custom and user controls using [CallbackMethod] Attributes

The following topics are discussed here:

© West Wind Technologies, 1996-2016 • Updated: 04/15/13
Comment or report problem with topic