Microsoft .Net Mobile Question:

What is .NET Mobile Images control. Explain with an example?

.Net Mobile Interview Question
.Net Mobile Interview Question

Answer:

Various mobile devices have different displaying capabilities. The Image control enables developers to specify different types of images fir different devices.

Example: Devices which display GIF, some devices which display BMP or WBMP images.

<%@ Page Inherits= "System.Web.UI.MobileControls.MobilePage"%>

<%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

<Mobile:Form runat="server">
<Mobile:Image runat="server">
<DeviceSpecific>
<Choice ImageURL="image1.gif" />
<Choice ImageURL="image1.bmp" />
<Choice ImageURL="image1.wbmp" />
</DeviceSpecific>
</Mobile:Image>
</Mobile:Form>


Previous QuestionNext Question
Do you know TextBox and TextView controls of .NET Mobile?Explain how to develop mobile applications using Microsoft Mobile Internet Toolkit (MMIT) or .NET Mobile?