System.Web.UI.HtmlControls.HtmlInputImage.LoadPostData Method

Processes the postback data for the System.Web.UI.HtmlControls.HtmlInputImage control.

Syntax

protected virtual bool LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection)

Parameters

postDataKey
The key identifier for the control.
postCollection
The collection of all incoming name values.

Returns

true if the System.Web.UI.HtmlControls.HtmlInputImage control's state has changed as a result of the postback; otherwise, false.

Remarks

The HtmlInputImage.LoadPostData(string, System.Collections.Specialized.NameValueCollection) method checks to see whether coordinates that represent the location where the image was clicked by the user are part of the postback data for the System.Web.UI.HtmlControls.HtmlInputImage control. If coordinates are part of the postback data, then the HtmlInputImage.LoadPostData(string, System.Collections.Specialized.NameValueCollection) method registers the System.Web.UI.HtmlControls.HtmlInputImage control with the Web page as a control that requires an event to be raised when it is processed.

Note:

The origin coordinates (0,0) are located in the upper-left corner of the image.

The HtmlInputImage.LoadPostData(string, System.Collections.Specialized.NameValueCollection) method is used primarily by control developers extending the functionality of the System.Web.UI.HtmlControls.HtmlInputImage control.

Requirements

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