Version

BeforeAction Property

Event fired before action occured.
Syntax
'Declaration
 
Public Property BeforeAction As String
public string BeforeAction {get; set;}
Remarks

It can be the name of implemented function or explicit javascript statement(s). If the name of function is used, then that event handler may contain up to 8 parameters.

  1. The reference to the JavaScript object that represents WebHtmlEditor.
  2. The id of action. It can be equal to one of the values defined in the ActionType enum. In case of a custom button its value is equal to BaseChildControl.Key property.
  3. The reference to the event object.
  4. Possible extra parameters p4, p5, p6, p7, p8 and act may contain the caption, id of element, colors, etc.

Notes:

  1. Action of event can be canceled by oEvent.cancel=true;
  2. Postback can be triggered by oEvent.needPostBack=true;
  3. Default postback can be canceled by oEvent.cancelPostBack=true;
  4. Extra parameters p4, p5, p6, p7, p8 and act can be used for advanced features. All those parameters can be modified by adding new members to the oEvent. For example, oEvent.p4=p4+"ok"; However, there is no support for any misbehavior triggered by that action.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also