System.Web.UI.WebControls.ImageButton.GetPostBackOptions Method

Creates a System.Web.UI.PostBackOptions object that represents the System.Web.UI.WebControls.ImageButton control's postback behavior.

Syntax

protected virtual System.Web.UI.PostBackOptions GetPostBackOptions ()

Returns

A System.Web.UI.PostBackOptions that represents the System.Web.UI.WebControls.ImageButton control's postback behavior.

Remarks

The ImageButton.GetPostBackOptions method creates a System.Web.UI.PostBackOptions object that represents the System.Web.UI.WebControls.ImageButton control's postback behavior. The System.Web.UI.PostBackOptions object is then typically passed to the System.Web.UI.ClientScriptManager.GetPostBackEventReference(System.Web.UI.PostBackOptions) method, which is used to obtain a reference to a client-side script function that, when invoked, causes the server to postback to the page.

This method is used primarily by control developers when extending the System.Web.UI.WebControls.ImageButton class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0