asp.net.ph

HtmlInputImage Class

System.Web.UI.HtmlControls Namespace


Allows programmatic access to the HTML <input type=image> element on the server.

HtmlInputImage Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlInputImage ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Align String [ Get , Set ]
public Alt String [ Get , Set ]
public Border Int32 [ Get , Set ]
public CausesValidation Boolean [ Get , Set ]
public Src String [ Get , Set ]
public ValidationGroup String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected OnServerClick ( ImageClickEventArgs e ) Void
protected RaisePostBackEvent ( String eventArgument ) Void
protected RaisePostDataChangedEvent ( ) Void
protected RenderAttributes ( HtmlTextWriter writer ) Void

Collapse   Events

Multicast Name Type
multicast ServerClick ImageClickEventHandler

Remarks

Use the HtmlInputImage control to create a button that displays an image.

You can programmatically control the action associated with the HtmlInputImage control by providing an event handler for the ServerClick event.

The coordinates where the user clicks an HtmlInputImage control can easily be determined by using the X and Y properties of the ImageClickEventArgs object that is passed as a parameter to the user-defined event handler.

NOTE: Unlike <button> elements, all browsers support the HTML <input type=image> element.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlInputImage in ASP.NET Syntax for HTML Controls.

See Also

HtmlInputText   HtmlInputButton   HtmlInputRadioButton   HtmlInputCheckBox   HtmlInputHidden   HtmlInputFile Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph