Assembly: System.Web (in System.Web.dll)
Initializes a new instance of theclass with the specified target control data.
Initializes a new instance of theclass with the specified target control and argument data.
|PostBackOptions(Control^, String^, String^, Boolean, Boolean, Boolean, Boolean, Boolean, String^)|
Initializes a new instance of theclass with the specified values for the instance's properties.
Gets or sets the target URL for the postback of a Web Forms page.
Gets or sets an optional argument that is transferred in the postback event.
Gets or sets a value that indicates whether the form will automatically post back to the server in response to a user action.
Gets or sets a value indicating whether the postback event should occur from client-side script.
Gets or sets a value indicating whether client-side validation is required before the postback event occurs.
Gets the control target that receives the postback event.
Gets or sets a value indicating whether the postback event should return the page to the current scroll position and return focus to the current control.
Gets or sets the group of controls for which theobject causes validation when it posts back to the server.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
The following code example uses the OnClick event of a Button control to generate client-side script for a HyperLink control that will allow the HyperLink control to cause a postback event. Because the ActionUrl property of the myPostBackOptions object is set to "Page2.aspx", the postback will post the Web Forms page to another page named "Page2.aspx", which is not provided here. To use this example, you must add another Web page named "Page2.aspx" to your project or directory.
The following code example is a Web page that can be used to run the preceding code-behind file.
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.