Edytuj

Udostępnij za pośrednictwem


GridView.IPostBackContainer.GetPostBackOptions(IButtonControl) Method

Definition

Creates a PostBackOptions object that represents the postback behavior of the specified button 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 for which to create the callback script.

Returns

A PostBackOptions that represents the postback behavior of the specified button control.

Implements

Exceptions

The buttonControl parameter contains null.

buttonControl causes validation and is attempting to post back to the same container it validates.

Applies to