Answers

Question and Answer:

  Home  .Net Mobile

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

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>

 176 views

More Questions for you: