System.Web.UI.WebControls.LinkButton Members

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

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

Public Constructors

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

Public Properties

CausesValidationbool.

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

CommandArgumentstring.

Gets or sets an optional argument passed to the LinkButton.Command event handler along with the associated LinkButton.CommandName property.

CommandNamestring.

Gets or sets the command name associated with the System.Web.UI.WebControls.LinkButton control. This value is passed to the LinkButton.Command event handler along with the LinkButton.CommandArgument property.

OnClientClickstring.

Gets or sets the client-side script that executes when a System.Web.UI.WebControls.LinkButton control's LinkButton.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.LinkButton control is clicked.

Textstring.

Gets or sets the text caption displayed on the System.Web.UI.WebControls.LinkButton control.

ValidationGroupstring.

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

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

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

override
AddParsedSubObject(object)

Notifies the control that an element, either XML or HTML, was parsed, and adds the element to the control's System.Web.UI.ControlCollection object.

GetPostBackOptions() : System.Web.UI.PostBackOptions

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

override
LoadViewState(object)
Documentation for this section has not yet been entered.
OnClick(EventArgs)

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

OnCommand(CommandEventArgs)

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

override
OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

RaisePostBackEvent(string)

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

override
RenderContents(System.Web.UI.HtmlTextWriter)

Renders the contents of the control to the specified writer.

Public Events

Click

Occurs when the System.Web.UI.WebControls.LinkButton control is clicked.

Command

Occurs when the System.Web.UI.WebControls.LinkButton control is clicked.

Explicitly Implemented Interface Members