Editar

Compartilhar via


FormView.IPostBackContainer.GetPostBackOptions(IButtonControl) Method

Definition

Determines the postback event options for the FormView control.

 virtual System::Web::UI::PostBackOptions ^ System.Web.UI.WebControls.IPostBackContainer.GetPostBackOptions(System::Web::UI::WebControls::IButtonControl ^ buttonControl) = System::Web::UI::WebControls::IPostBackContainer::GetPostBackOptions;
System.Web.UI.PostBackOptions IPostBackContainer.GetPostBackOptions (System.Web.UI.WebControls.IButtonControl buttonControl);
abstract member System.Web.UI.WebControls.IPostBackContainer.GetPostBackOptions : System.Web.UI.WebControls.IButtonControl -> System.Web.UI.PostBackOptions
override this.System.Web.UI.WebControls.IPostBackContainer.GetPostBackOptions : System.Web.UI.WebControls.IButtonControl -> System.Web.UI.PostBackOptions
Function GetPostBackOptions (buttonControl As IButtonControl) As PostBackOptions Implements IPostBackContainer.GetPostBackOptions

Parameters

buttonControl
IButtonControl

The button control that posted the page back to the server.

Returns

The postback event options for the FormView control.

Implements

Exceptions

The object contained in the buttonControl parameter is null.

The CausesValidation property of buttonControl is true.

Remarks

The IPostBackContainer.GetPostBackOptions method is a helper method that is called by the FormView control to create a PostBackOptions object that contains the postback event options for the control. The PostBackOptions object is typically used as a parameter for the GetPostBackEventReference method.

Applies to

See also