You write a Web application. This application must support m

题目
单选题
You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.myStrings.resxmyStrings.enCA.resxmyString.en-US.resxmyStrings.fr-CA.resxmyStrings.es-MX.resx resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings. You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do? ()
A

Add the following configuration section to the Web.config file.

B

Set the directive for each page in your site as follows:<%@ page= uiculture=“Auto”>

C

Add the following code segment to the pages load event.lblName.Text = @”{myStrings}Name”; lblAddress.Text = @”{myStrings}Address”; lblEmail.Text = @”{myStrings}Email”; lblPhone.Text = @”{myStrings}Phone”;

D

Add the following code segment to the pages load event. lblName.Text = Resources.myStrings.Name; lblAddress.Text = Resources.myStrings.Address; lblEmail.Text = Resources.myStrings.Email; lblPhone.Text = Resources.myStrings.Phone;

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You need to design an access control strategy for the marketing application. You solution must minimize impact on server and network performance. What should you do?()

  • A、Require client computers to connect to the marketing application by using a VPN connection
  • B、Use IPSec to encrypt communications between the servers in the New York and Atlanta offices
  • C、Require the high security setting on Terminal Services connections to the marketing application
  • D、Configure all marketing application Web pages to require SSL

正确答案:D

第2题:

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  When you access the application in a Web browser, you receive the following error message: "Service Unavailable".  You need to access the application successfully.  What should you do? ()

  • A、Start Microsoft IIS 6.0.
  • B、Start the Application pool.
  • C、Set the .NET Framework version.
  • D、Add the Web.config file for the application.

正确答案:B

第3题:

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.  When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter. You need to identify the reasons for this increase.  What are three possible reasons that could cause this increase?()

  • A、Restart of the Microsoft IIS 6.0 host. 
  • B、Restart of the Microsoft Windows Server 2003 that hosts the Web application. 
  • C、Addition of a new assembly in the Bin directory of the application. 
  • D、Addition of a code segment that requires recompilation to the ASP.NET Web application. 
  • E、Enabling of HTTP compression in the Microsoft IIS 6.0 manager for the application. 
  • F、Modification to the Web.config file in the <system.web> section for debugging the application.

正确答案:C,D,F

第4题:

单选题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You use the ClickOnce deployment methodology to distribute the application. You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application. Where should you store the application data?()
A

 In isolated storage.

B

 On the database server.

C

 In the ClickOnce data directory.

D

 In the App.config file of the application.


正确答案: B
解析: 暂无解析

第5题:

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You use the ClickOnce deployment methodology to distribute the application. You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application. Where should you store the application data?()

  • A、 In isolated storage.
  • B、 On the database server.
  • C、 In the ClickOnce data directory.
  • D、 In the App.config file of the application.

正确答案:A

第6题:

You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application. myStrings.resx myStrings.en-CA.resx myString.en-US.resx myStrings.fr-CA.resx myStrings.es-MX.resxEach resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings. You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do? ()

  • A、Add the following configuration section to the Web.config file.
  • B、Set the directive for each page in your site as follows: <%@ page="" uiculture="”Auto”">
  • C、Add the following code segment to the pages load event.lblName.Text = @”{myStrings}Name”; lblAddress.Text = @”{myStrings}Address”; lblEmail.Text = @”{myStrings}Email”; lblPhone.Text = @”{myStrings}Phone”;
  • D、Add the following code segment to the pages load event.lblName.Text = Resources.myStrings.Name; lblAddress.Text = Resources.myStrings.Address; lblEmail.Text = Resources.myStrings.Email; lblPhone.Text = Resources.myStrings.Phone;

正确答案:D

第7题:

You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()

  • A、Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
  • B、Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
  • C、Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
  • D、In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.

正确答案:A,B

第8题:

Your network contains a Web-based application that runs on Windows Server 2003. You plan to  migrate the Web-based application to Windows Server 2008 R2. You need to recommend a server  configuration to support the Web-based application. The server configuration must meet the following  requirements:   èEnsure that the application is available to all users if a single server?fails èSupport the installation of .NET applications èMinimize software costs  What should you recommend?() 

  • A、Install the Server Core installation of Windows Server 2008 R2 Standard on two servers. Configure the servers in a Network Load Balancing cluster.
  • B、Install the full installation of Windows Server 2008 R2 Web on two servers. Configure the servers in a Network Load Balancing cluster.
  • C、Install the full installation of Windows Server 2008 R2 Enterprise on two servers. Configure the servers in a failover cluster.
  • D、Install the full installation of Windows Server 2008 R2 Datacenter on two servers. Configure the servers in a failover cluster.

正确答案:B

第9题:

单选题
You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?()
A

<%: Model.FirstName %>

B

<%= Model.FirstName %> 

C

<% Response.Write(Model.FirstName) %>  

D

<% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %> 


正确答案: A
解析: 暂无解析

第10题:

单选题
You are developing a Web application. Your code restricts access to some pages based on the users credentials. You need to configure IIS to supply the user's Windows credentials to your Web application. These credentials must be encrypted. What should you do? ()
A

Enable Anonymous access. Enable Integrated Windows authentication.

B

Enable Anonymous access. Enable Basic authentication.

C

Disable Anonymous access. Enable Integrated Windows authentication.

D

Disable Anonymous access. Enable Basic authentication.


正确答案: A
解析: 暂无解析

更多相关问题