System.Web.UI.WebControls.Button: Method Members

The methods of System.Web.UI.WebControls.Button are listed below. For a list of all members, see the Button Members list.

See Also: Inherited members from System.Web.UI.WebControls.WebControl

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds the attributes of the System.Web.UI.WebControls.Button control to the output stream for rendering on the client.

GetPostBackOptions() : System.Web.UI.PostBackOptions

Creates a System.Web.UI.PostBackOptions object that represents the System.Web.UI.WebControls.Button control's postback behavior.

OnClick(EventArgs)

Raises the Button.Click event of the System.Web.UI.WebControls.Button control.

OnCommand(CommandEventArgs)

Raises the Button.Command event of the System.Web.UI.WebControls.Button control.

override
OnPreRender(EventArgs)

Determines whether the button has been clicked prior to rendering on the client.

RaisePostBackEvent(string)

Raises events for the System.Web.UI.WebControls.Button control when it posts back to the server.

override
RenderContents(System.Web.UI.HtmlTextWriter)

Renders the contents of the control to the specified writer.