System.Web.UI.WebControls.LinkButton.GetPostBackOptions Method

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

Syntax

protected virtual System.Web.UI.PostBackOptions GetPostBackOptions ()

Returns

A System.Web.UI.PostBackOptions that represents the System.Web.UI.WebControls.LinkButton control's postback behavior.

Remarks

The LinkButton.GetPostBackOptions method creates a System.Web.UI.PostBackOptions object that represents the System.Web.UI.WebControls.LinkButton control's postback behavior. The System.Web.UI.PostBackOptions object is then typically passed to the System.Web.UI.ClientScriptManager.GetPostBackEventReference(System.Web.UI.PostBackOptions) method, which is used to obtain a reference to a client-side script function that, when invoked, causes the server to post back to the page.

This method is used primarily by control developers when extending the System.Web.UI.WebControls.LinkButton class.

Requirements

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