System.Web.UI.WebControls.ImageButton Members

The members of System.Web.UI.WebControls.ImageButton are listed below.

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

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.ImageButton class.

Public Properties

CausesValidationbool.

Gets or sets a value indicating whether validation is performed when the System.Web.UI.WebControls.ImageButton control is clicked.

CommandArgumentstring.

Gets or sets an optional argument that provides additional information about the ImageButton.CommandName property.

CommandNamestring.

Gets or sets the command name associated with the System.Web.UI.WebControls.ImageButton control.

Enabledbool.

Gets or sets a value indicating whether the System.Web.UI.WebControls.ImageButton can be clicked to perform a post back to the server.

override
GenerateEmptyAlternateTextbool.

Gets or sets a value indicating whether the control generates an alternate-text attribute for an empty string value.

OnClientClickstring.

Gets or sets the client-side script that executes when an System.Web.UI.WebControls.ImageButton control's ImageButton.Click event is raised.

PostBackUrlstring.

Gets or sets the URL of the page to post to from the current page when the System.Web.UI.WebControls.ImageButton control is clicked.

ValidationGroupstring.

Gets or sets the group of controls for which the System.Web.UI.WebControls.ImageButton control causes validation when it posts back to the server.

Protected Properties

[read-only]
override
TagKeySystem.Web.UI.HtmlTextWriterTag.

Gets the System.Web.UI.HtmlTextWriterTag value that corresponds to the System.Web.UI.WebControls.ImageButton control.

Textstring.

Gets or sets the value of the System.Web.UI.WebControls.ImageButton control's Image.AlternateText property.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds the attributes of an System.Web.UI.WebControls.ImageButton 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.ImageButton control's postback behavior.

LoadPostData(string, System.Collections.Specialized.NameValueCollection) : bool

Processes posted data for the System.Web.UI.WebControls.ImageButton control.

OnClick(System.Web.UI.ImageClickEventArgs)

Raises the ImageButton.Click event and allows you to handle the ImageButton.Click event directly.

OnCommand(CommandEventArgs)

Raises the ImageButton.Command event and allows you to handle the ImageButton.Command event directly.

override
OnPreRender(EventArgs)

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

RaisePostBackEvent(string)

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

RaisePostDataChangedEvent()

Notifies the ASP.NET application that the state of the System.Web.UI.WebControls.ImageButton control has changed.

Public Events

Click

Occurs when the System.Web.UI.WebControls.ImageButton is clicked.

Command

Occurs when the System.Web.UI.WebControls.ImageButton is clicked.

Explicitly Implemented Interface Members