Introduction to the Image ControlĀ 

Use the Image control to specify an image to display. Image controls must be placed within a Form or Panel control, or inside a control's template on a mobile Web page. You can also drag it onto a mobile user control page. Specify the location of the image's file with the ImageUrl property. In addition, the Image control's NavigateUrl property enables you to use the image as a link to any valid URL. Use the Image control's Alignment property to align the image left or right or to center it.

ASP.NET Mobile Designer

Without the Image control, the widely varying capabilities of mobile devices make it nearly impossible to display the same image on all devices. However, by applying device filters, applications can select an image to display from a group of images. Each image in the group can be targeted toward specific types of devices. For example, your application can display a color image on handheld computers. When a user runs the same application on a Web-enabled cell phone, the application can instead select a simplified monochrome image more suitable to the phone's display. The Image control chooses the most appropriate image to display by overriding its property values for specific hardware.

In addition, applications that use the Image control can determine the values of many of the control's properties at run time. The Image control also supports data binding, enabling the property values to be set dynamically.

See Also

Tasks

How to: Add and Configure an Image Control

Reference

Image

Concepts

Overriding Properties
Introduction to the Form Control
Introduction to the Panel Control

Other Resources

Using Device Filters