Читати англійською Редагувати

Поділитися через


PostBackOptions Constructors

Definition

Initializes a new instance of the PostBackOptions class.

Overloads

PostBackOptions(Control)

Initializes a new instance of the PostBackOptions class with the specified target control data.

PostBackOptions(Control, String)

Initializes a new instance of the PostBackOptions class with the specified target control and argument data.

PostBackOptions(Control, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, String)

Initializes a new instance of the PostBackOptions class with the specified values for the instance's properties.

PostBackOptions(Control)

Initializes a new instance of the PostBackOptions class with the specified target control data.

C#
public PostBackOptions(System.Web.UI.Control targetControl);

Parameters

targetControl
Control

The Control that receives the postback event.

See also

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.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

PostBackOptions(Control, String)

Initializes a new instance of the PostBackOptions class with the specified target control and argument data.

C#
public PostBackOptions(System.Web.UI.Control targetControl, string argument);

Parameters

targetControl
Control

The Control that receives the postback event.

argument
String

The optional parameter passed during the postback event.

See also

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.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

PostBackOptions(Control, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, String)

Initializes a new instance of the PostBackOptions class with the specified values for the instance's properties.

C#
public PostBackOptions(System.Web.UI.Control targetControl, string argument, string actionUrl, bool autoPostBack, bool requiresJavaScriptProtocol, bool trackFocus, bool clientSubmit, bool performValidation, string validationGroup);

Parameters

targetControl
Control

The Control that receives the postback event.

argument
String

The optional parameter passed during the postback event.

actionUrl
String

The target of the postback.

autoPostBack
Boolean

true to automatically post the form back to the server in response to a user action; otherwise, false.

requiresJavaScriptProtocol
Boolean

true if the javascript: prefix is required; otherwise, false.

trackFocus
Boolean

true if the postback event should return the page to the current scroll position and return focus to the target control; otherwise, false.

clientSubmit
Boolean

true if the postback event can be raised by client script; otherwise, false.

performValidation
Boolean

true if client-side validation is required before the postback event occurs; otherwise, false.

validationGroup
String

The group of controls for which PostBackOptions causes validation when it posts back to the server.

Exceptions

targetControl is null.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.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