System.Web.UI.PostBackOptions Class

Specifies how client-side JavaScript is generated to initiate a postback event.

See Also: PostBackOptions Members

Syntax

public sealed class PostBackOptions

Remarks

The System.Web.UI.PostBackOptions class allows controls to emit client-side script that initiates a postback event. The System.Web.UI.PostBackOptions class also provides a reference to the control that initiated the postback event through the PostBackOptions.TargetControl property. The postback event is created based on the options specified in the System.Web.UI.PostBackOptions object passed in to the ClientScriptManager.GetPostBackEventReference(PostBackOptions) method.

Normally, a postback to the server is initiated by elements such as a Submit button or an Image button. However, by emitting client-side JavaScript, different controls can initiate a postback event.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0