System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick Method

Raises the HtmlInputButton.ServerClick event. This allows you to handle the event directly.

Syntax

protected virtual void OnServerClick (EventArgs e)

Parameters

e
A EventArgs that contains the event data.

Remarks

The HtmlInputButton.ServerClick event is raised when an System.Web.UI.HtmlControls.HtmlInputButton control is clicked.

Note:

A Reset button does not raise the HtmlInputButton.ServerClick event.

When you create an System.Web.UI.HtmlControls.HtmlInputButton delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see Events and Delegates.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0