Question:You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application uses a mobile Web form named Default.aspx. You write the following code segment. (Line numbers are included for reference only.)
01 MobileCapabilities curMobile; 02 curMobile = Request.Browser as MobileCapabilities;
The Web form contains a method named SetWmlSpecificInfo.
You need to ensure that each time the Web form is browsed from a browser that supports WML, the SetWmlSpecificInfo method is called.
Which code segment should you insert at line 03?

 

A if (curMobile.IsMobileDevice) {
SetWmlSpecificInfo() } 

B if (curMobile.Browser.StartsWith("Mobile:wap/wml")) {
SetWmlSpecificInfo() } 

C if (curMobile.Platform == "text/vnd.wap.wml") {
SetWmlSpecificInfo(); } 

D if (curMobile.PreferredRenderingMime == "text/vnd.wap.wml") {
SetWmlSpecificInfo(); } 

+ Answer
+ Report
Total Preview: 1760

Copyright © 2024. Powered by Intellect Software Ltd