System.Web.UI.HtmlControls.HtmlButton.RaisePostBackEvent Method

Raises events for the System.Web.UI.HtmlControls.HtmlButton control when it posts back to the server.

Syntax

protected virtual void RaisePostBackEvent (string eventArgument)

Parameters

eventArgument
The argument for the event.

Remarks

The HtmlButton.RaisePostBackEvent(string) method is used by the System.Web.UI.HtmlControls.HtmlButton control, when it is clicked, to raise a HtmlButton.ServerClick event.

If the HtmlButton.CausesValidation property is true, the System.Web.UI.Page.Validate(string) method is called using the group of controls specified in the HtmlButton.ValidationGroup property.

This method is used primarily by control developers extending the functionality of the System.Web.UI.HtmlControls.HtmlButton control.

Requirements

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