System.Web.UI.HtmlControls.HtmlButton.ServerClick Event

Occurs when the user clicks an System.Web.UI.HtmlControls.HtmlButton control on the client Web page.

Syntax

public event EventHandler ServerClick

Remarks

The HtmlButton.ServerClick event is raised when the System.Web.UI.HtmlControls.HtmlButton control is clicked. This server event causes a round trip to occur from the client to the server and back. It is deliberately different from the client-side OnClick event. If a conflict exists between code run with a HtmlButton.ServerClick event and code run by a client-side OnClick event, the server-side event instructions will override the client-side code.

For more information about handling events, see Consuming Events.

Requirements

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