Command.OnClick(EventArgs) Method

Definition

Called when the user activates the control. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected:
 virtual void OnClick(EventArgs ^ e);
protected virtual void OnClick (EventArgs e);
abstract member OnClick : EventArgs -> unit
override this.OnClick : EventArgs -> unit
Protected Overridable Sub OnClick (e As EventArgs)

Parameters

e
EventArgs

An object defined by an EventArgs that contains event data.

Remarks

The default implementation of the OnClick method raises the Click event. Inheriting classes can override the OnClick method to perform other tasks.

Applies to

See also