UltimateEditor Class Library

UltimateEditor.PostBack Event

Raised when the user clicks a toolbar button or changes a dropdown selection.

You have to set the PostBackValue property of a toolbar item (button or dropdown) to let the control postback to server when the user clicks that button or change the selection in that dropdown.

In VS.NET, you can double-click the UltimateEditor on your web form to generate the event handler method automatically.

If you don't use VS.NET, you will need to edit the event handler method as in the example code for the PostBack Event.

[Visual Basic]
Public Event PostBack As PostBackEventHandler
[C#]
public event PostBackEventHandler PostBack;

Event Data

The event handler receives an argument of type PostBackEventArgs containing data related to this event. The following PostBackEventArgs property provides information specific to this event.

PropertyDescription
PostBackValue String returned to server when the user clicks a button or changes the selection in a dropdown when the PostBackValue property of that toolbar item is set to a non-blank value.

Example

This sample shows how to handle the PostBack event.

private void UltimateEditor1_PostBack(object sender, Karamasoft.WebControls.UltimateEditor.PostBackEventArgs e) 
{
    lblStatus.Text = e.PostBackValue;
}

#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.UltimateEditor1.PostBack += new Karamasoft.WebControls.UltimateEditor.UltimateEditor.PostBackEventHandler(this.UltimateEditor1_PostBack);
    this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

See Also

UltimateEditor Class | Karamasoft.WebControls.UltimateEditor Namespace