PostBackOptions Constructor (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.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public PostBackOptions(
	Control targetControl,
	string argument,
	string actionUrl,
	bool autoPostBack,
	bool requiresJavaScriptProtocol,
	bool trackFocus,
	bool clientSubmit,
	bool performValidation,
	string validationGroup
)

Parameters

targetControl
Type: System.Web.UI.Control

The Control that receives the postback event.

argument
Type: System.String

The optional parameter passed during the postback event.

actionUrl
Type: System.String

The target of the postback.

autoPostBack
Type: System.Boolean

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

requiresJavaScriptProtocol
Type: System.Boolean

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

trackFocus
Type: System.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
Type: System.Boolean

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

performValidation
Type: System.Boolean

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

validationGroup
Type: System.String

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

Exception Condition
ArgumentNullException

targetControl is null.

.NET Framework
Available since 2.0
Return to top
Show: