This documentation is archived and is not being maintained.

LinkButton.GetPostBackOptions Method

Note: This method is new in the .NET Framework version 2.0.

Creates a PostBackOptions object that represents the LinkButton control's postback behavior.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected virtual PostBackOptions GetPostBackOptions ()
protected PostBackOptions GetPostBackOptions ()
protected function GetPostBackOptions () : PostBackOptions

Return Value

A PostBackOptions that represents the LinkButton control's postback behavior.

The GetPostBackOptions method creates a PostBackOptions object that represents the LinkButton control's postback behavior. The PostBackOptions object is then typically passed to the ClientScriptManager.GetPostBackEventReference 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 LinkButton class.

Notes to Inheritors You can override the GetPostBackOptions method in your derived class to modify the postback options for the button control, or to call client-side script when the button is clicked. Be sure to call the base class's GetPostBackOptions method so that the standard postback options are set.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: