This documentation is archived and is not being maintained.
PostBackOptions Constructor (Control, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, String)
Visual Studio 2010
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: 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 nullptr. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: