Editare

Partajați prin


IPostBackContainer.GetPostBackOptions(IButtonControl) Method

Definition

Returns the options required for a postback script for a specified button control.

public:
 System::Web::UI::PostBackOptions ^ GetPostBackOptions(System::Web::UI::WebControls::IButtonControl ^ buttonControl);
public System.Web.UI.PostBackOptions GetPostBackOptions (System.Web.UI.WebControls.IButtonControl buttonControl);
abstract member GetPostBackOptions : System.Web.UI.WebControls.IButtonControl -> System.Web.UI.PostBackOptions
Public Function GetPostBackOptions (buttonControl As IButtonControl) As PostBackOptions

Parameters

buttonControl
IButtonControl

The control generating the postback event.

Returns

A PostBackOptions object containing the options required to generate a postback script for buttonControl.

Remarks

Implementations of the GetPostBackOptions method should configure a new PostBackOptions instance with the information required for the GetPostBackEventReference method to construct a valid postback event reference, which, when executed on the client, initiates a postback.

Applies to

See also