This documentation is archived and is not being maintained.

LinkButton.GetPostBackOptions Method

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
Not applicable.

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: