
860
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.Web.UI.ControlBuilder ➝ HyperLinkControlBuilder
Image
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents an Image control on a Web Forms page, which is used to display
any supported graphic (including .jpg, .bmp, .gif, and .png files). To specify the picture
that should appear in this control, set a URL to the file by using the ImageUrl property.
You can specify a string of AlternateText, which will be displayed in browsers that do not
support graphics or if the picture file is not available. You can also set a Font for the
alternate text. Many browsers also show this text as a tooltip when the user positions
the mouse over the image.
An Image control cannot capture mouse clicks. To respond to image click events, use
the ImageButton control instead.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ Image
Subclasses
ImageButton
ImageAlign
System.Web.UI.WebControls (system.web.dll)
serializable
enum
This enumeration specifies the alignment used for an Image control. Left and Right specify
an alignment relative ...