Which markup should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a mobile Web page.
You add the following StyleSheet control to the Web page.

<mobile:StyleSheet id="MyStyleSheet" runat="server">
<mobile:Style Name="StyleA" Font-Name="Arial" Font-Bold="True" Wrapping="NoWrap">
</mobile:Style>
</mobile:StyleSheet>

You need to add a Label control named MyLabel that uses the defined style in the MyStyleSheet StyleSheet control.
Which markup should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a mobile Web page.
You add the following StyleSheet control to the Web page.

<mobile:StyleSheet id="MyStyleSheet" runat="server">
<mobile:Style Name="StyleA" Font-Name="Arial" Font-Bold="True" Wrapping="NoWrap">
</mobile:Style>
</mobile:StyleSheet>

You need to add a Label control named MyLabel that uses the defined style in the MyStyleSheet StyleSheet control.
Which markup should you use?

A.
<mobile:Label ID="MyLabel" Runat="server"StyleReference="MyStyleSheet:StyleA"> </mobile:Label>

B.
<mobile:Label ID="MyLabel" Runat="server" StyleReference="StyleA"> </mobile:Label>

C.
<mobile:Label ID="MyLabel" Runat="server">
<DeviceSpecific ID="DSpec" Runat="server">
<Choice Filter="MyStyleSheet" StyleReference="StyleA" />
</DeviceSpecific>
</mobile:Label>

D.
<mobile:Label ID="MyLabel" Runat="server">
<DeviceSpecific ID="DSpec" Runat="server">
<Choice Argument="StyleA" StyleReference="MyStyleSheet" />
</DeviceSpecific>
</mobile:Label>



Leave a Reply 0

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