Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
    • Overview
    • Installation & Deployement
    • EO.Web ToolTip
    • EO.Web Rating
    • EO.Web Slider & RangeSlider
    • EO.Web ListBox
    • EO.Web ComboBox
    • EO.Web Captcha
    • EO.Web ASPX To PDF
    • EO.Web Slide
    • EO.Web Flyout
    • EO.Web EditableLabel
    • EO.Web ImageZoom
    • EO.Web Floater
    • EO.Web Downloader
    • EO.Web ColorPicker
    • EO.Web HTML Editor
    • EO.Web File Explorer
    • EO.Web SpellChecker
    • EO.Web Grid
    • EO.Web MaskedEdit
    • EO.Web Splitter
    • EO.Web Menu
    • EO.Web Slide Menu
    • EO.Web TabStrip
    • EO.Web TreeView
    • EO.Web Calendar
    • EO.Web Callback
    • EO.Web MultiPage
    • EO.Web Dialog
    • EO.Web AJAXUploader
    • EO.Web ProgressBar - Free!
    • EO.Web ToolBar - Free!
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
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.

JavaScript
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.