GridView.IPostBackContainer.GetPostBackOptions(IButtonControl) Method

Definition

Creates a PostBackOptions object that represents the postback behavior of the specified button control.

C#
System.Web.UI.PostBackOptions IPostBackContainer.GetPostBackOptions (System.Web.UI.WebControls.IButtonControl buttonControl);

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

제품 버전
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1