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.
Assembly: System.Web (in System.Web.dll)
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
-
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. |
Available since 2.0