单项选择题

You work as a Web Developer at Certkiller.com. You are in the process of creating a mobile Webapplication. You use Microsoft ASP.NET 3.5 to create the Web application. 
In an assembly named MobileUser the following code exists: 
namespace Certkiller.MobileUser { 
public class Capabilities { 
public static bool IsEnhancedDevice(MobileCapabilities capabilities, string optional) { 
return (capabilities["AJAX"] == Boolean.TrueString && 
capabilities["Silverlight"] == Boolean.TrueString); 
} 
} 
} 
The following code is contained on a page in the Web application: 
MobileCapabilities capabilities = (MobileCapabilities)Request.Browser; 
bool isEnhancedDevice = capabilities.HasCapability("SilverlightAndAjax", null) 
You have to make sure that the code calls the IsEnhancedDevice method of the Capabilities class.You configure the Web.config file to accomplish this.
What should you do?()

A.A
B.B
C.C
D.D

相关考题

You work as a Web Application Developer at Certkiller.c...


单项选择题

You work as a Web Application Developer at Certkiller.com. You make use of .NET Frameworkv3.5 to create an ASP.NET application. 
You decide to create a Web user control named KingShare. KingShare is compiled as a library.The code segment below is written for KingShare. (The line numbers is included for reference purposes)
1 protected override void OnInit(EventArgs e)
2 {
3 base.OnInit(e);
4
5 } 
The master pages in the application contains the <%@ Master Language="C#"
EnableViewState="false" %> directive. You receive an instruction from the network administratorto make sure that the KingShare state is able to persist on the pages that reference the masterpage. You should thus identify the appropriate code segment you need to add to line 4 to achievethis. 
What should you do?()

A.Your best option would be to insert Page.RegisterRequiresPostBack(this)
B.Your best option would be to insert Page.RegisterRequiresControlState(this)
C.Your best option would be to insert Page.UnregisterRequiresControlState(this)
D.Your best option would be to insert Page.RegisterStartupScript("KingShare","server")