Raised when the user sends a callback request to server.
The event handler receives an argument of type CallbackEventArgs containing data related to this event. The following CallbackEventArgs properties provide information specific to this event.
This sample shows how to handle the Callback event.
private void UltimateAjax1_Callback(object sender, Karamasoft.WebControls.UltimateAjax.CallbackEventArgs e)
{
string [] split = e.Argument.Split(new Char[]{','});
int val1 = int.Parse(split[0]);
int val2 = int.Parse(split[1]);
int total = val1 + val2;
Label1.Text = total.ToString();
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.UltimateAjax1.Callback += new Karamasoft.WebControls.UltimateAjax.UltimateAjax.CallbackEventHandler(this.UltimateAjax1_Callback);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
UltimateAjax Class | Karamasoft.WebControls.UltimateAjax Namespace