Which DeviceSpecific element should you insert at line 02?

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
The application contains the following device filter element in the Web.config file.
<filter name="isHtml" compare="PreferredRenderingType"argument="html32" />
The application contains a Web page that has the following image control. (Line numbers are included for reference only.)

01 <mobile:Image ID="imgCtrl" Runat="server">
02
03 </mobile:Image>

You need to ensure that the following conditions are met:
The imgCtrl Image control displays the highRes.jpg file if the Web browser supports html
The imgCtrl Image control displays lowRes.gif if the Web broser does not support html.
Which DeviceSpecific element should you insert at line 02?

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
The application contains the following device filter element in the Web.config file.
<filter name="isHtml" compare="PreferredRenderingType"argument="html32" />
The application contains a Web page that has the following image control. (Line numbers are included for reference only.)

01 <mobile:Image ID="imgCtrl" Runat="server">
02
03 </mobile:Image>

You need to ensure that the following conditions are met:
The imgCtrl Image control displays the highRes.jpg file if the Web browser supports html
The imgCtrl Image control displays lowRes.gif if the Web broser does not support html.
Which DeviceSpecific element should you insert at line 02?

A.
<DeviceSpecific>
<Choice Filter="isHtml" ImageUrl="highRes.jpg" />
<Choice ImageUrl="lowRes.gif" />
</DeviceSpecific>

B.
<DeviceSpecific>
<Choice Filter="isHtml" Argument="false" ImageUrl="highRes.jpg" />
<Choice Filter="isHtml" Argument="true" ImageUrl="lowRes.gif" />
</DeviceSpecific>

C.
<DeviceSpecific>
<Choice Filter="PreferredRenderingType" ImageUrl="highRes.jpg" />
<Choice ImageUrl="lowRes.gif" />
</DeviceSpecific>

D.
<DeviceSpecific>
<Choice Filter="PreferredRenderingType" Argument="false" ImageUrl="highRes.jpg" />
<Choice Filter="PreferredRenderingType" Argument="true" ImageUrl="lowRes.gif" />
</DeviceSpecific>



Leave a Reply 0

Your email address will not be published. Required fields are marked *