Uredi

Deli z drugimi prek


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.

public:
 PostBackOptions(System::Web::UI::Control ^ targetControl);
public PostBackOptions (System.Web.UI.Control targetControl);
new System.Web.UI.PostBackOptions : System.Web.UI.Control -> System.Web.UI.PostBackOptions
Public Sub New (targetControl As Control)

Parameters

targetControl
Control

The Control that receives the postback event.

See also

Applies to

PostBackOptions(Control, String)

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

public:
 PostBackOptions(System::Web::UI::Control ^ targetControl, System::String ^ argument);
public PostBackOptions (System.Web.UI.Control targetControl, string argument);
new System.Web.UI.PostBackOptions : System.Web.UI.Control * string -> System.Web.UI.PostBackOptions
Public Sub New (targetControl As Control, argument As String)

Parameters

targetControl
Control

The Control that receives the postback event.

argument
String

The optional parameter passed during the postback event.

See also

Applies to

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.

public:
 PostBackOptions(System::Web::UI::Control ^ targetControl, System::String ^ argument, System::String ^ actionUrl, bool autoPostBack, bool requiresJavaScriptProtocol, bool trackFocus, bool clientSubmit, bool performValidation, System::String ^ validationGroup);
public PostBackOptions (System.Web.UI.Control targetControl, string argument, string actionUrl, bool autoPostBack, bool requiresJavaScriptProtocol, bool trackFocus, bool clientSubmit, bool performValidation, string validationGroup);
new System.Web.UI.PostBackOptions : System.Web.UI.Control * string * string * bool * bool * bool * bool * bool * string -> System.Web.UI.PostBackOptions
Public Sub New (targetControl As Control, argument As String, actionUrl As String, autoPostBack As Boolean, requiresJavaScriptProtocol As Boolean, trackFocus As Boolean, clientSubmit As Boolean, performValidation As Boolean, validationGroup As String)

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