Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

Using EO.Web Callback Controls

Apply to

Callback, CallbackPanel

Modifying Web.config

It is recommended that you add EO.Web.Runtime into your web.config's httpModules list in order to properly handle server side redirection. Without properly configuring EO.Web httpModule, EO.Web Callback/CallbackPanel will function but will not be able to properly handle server side redirection, such as an automatic redirection to login page when user session times out.

Trigger Callback request

Not a single line of JavaScript is needed.

Simply set Callback or CallbackPanel's Triggers property to specify a list of the controls that could be used to trigger Callback. When one of the triggering controls sends postback request to server, this postback request will be automatically handled by the Callback or CallbackPanel control's Execute event handler.

If you do not want to use Triggers for any reasons, then you will need to manually trigger Callback. See the following topic for details.

Client-side JavaScript to trigger Callback

Call global function eo_Callback to trigger a callback.

eo_Callback('Callback1', inputParam);                
The first parameter 'Callback1' is the client ID of the Callback control. The second parameter is the input parameter that will be passed to server side Execute event handler.

Server-side Callback's Execute event handler

When the call back process is triggered, server-side event handler will be called to execute the backend logic and return the result.
[C#]
private void Callback1_Execute(object sender, EO.Web.CallbackEventArgs e)
{    
}

Important Properties

The following table lists all the important Callback properties:

Properties Comments
Triggers Specifies a list of CallbackTrigger objects, each of which contains information of a control that could be used to trigger this callback.
ClientSideBeforeExecute Gets or sets the name of a client side JavaScript function which will be called before the callback.
ClientSideAfterExecute Gets or sets the name of a client side JavaScript function which will be called after callback is completed.
ClientSideAfterUpdate Gets or sets the name of a client side JavaScript function which will be called after callback has finished applying the new contents.


Direct link to this topic