You are creating a mobile Web Form that displays your company’s logo. The Web Form contains the following image control.
<mobile:Image ID=”ImageLogo” runat=server ImageURL=”logo-bw.gif”> </mobile:Image>
You need to display the logo in black and white on devices that do not support color. In addition, you need to display the logo in color on devices that support color. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A.
Add a method to the code-behind file named isColor. Ensure that it returns a Boolean value and takes an instance of the MobileCapabilities class and a string.
B.
Add a method to the code-behind file named isColor. Ensure that it uses the MobileCapabilities class and returns a string indicating the URL of the image to display.
C.
Add the following code segment between your image control definition tags.
<DeviceSpecific>
<Choice Filter=”isColor” ImageURL=”logo-color.gif” />
</DeviceSpecific>
D.
Add the following node to the deviceFilters element within the Web.config file.
<filter name=”isColor” compare=”IsColor” argument=”true” />