微软认证考试

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 reso

题目

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题:

A customer wants to improve the availability of a web application and provide more predictable scalability when scaling out the application.    Which Feature of WebLogic should you recommend to help solve this problem?()

  • A、Oracle Web Grid
  • B、ActiveCache
  • C、Coherence Grid Edition
  • D、WebLogic Session Replication
  • E、Coherence Web Edition

正确答案:C

第2题:

Your team creates a Web site. The Web site needs to be deployed to a staging server for performance testing. You plan to make a number of performance enhancements and then retest. You need to compile and copy the Web site to the staging server. What should you do? ()

  • A、Write a batch file that uses aspnet_compiler.exe.
  • B、Write a batch file that uses InstallUtil.exe.
  • C、Write a batch file that uses Csc.exe.
  • D、Write a batch file that uses aspnet_wp.exe.

正确答案:A

第3题:

You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database. You need to raise a custom event to track each change that is made to a user profile so that you can locate the error.Which event should you use? ()

A. WebAuditEvent

B. WebEventManager

C. WebBaseEvent

D. WebRequestEvent


参考答案:C

第4题:

Certkiller.com has employed you as a system administrator. Your job function encompassescreating an ASP.NET application for the network. You make use of Microsoft .NET Frameworkv3.5 to creaste the application.  You receive a request from management to capture the timing and performance data of the newlycreated application. For security purposes you need to make sure that he data is only availablewhen a Certkiller user is logged on to the Web server and not on individual Web pages.  What should you do?()

  • A、You should consider adding <trace enabled="true" writeToDiagnosticsTrace="true"pageOutput="true" localOnly="true" /> to the Web.config file.
  • B、You should consider adding <compilation debug="false" urlLinePragmas="true" /> to theWeb.config file.
  • C、You should consider adding <trace enabled="true" pageOutput="false" localOnly="true" /> tothe Web.config file.
  • D、You should consider adding <compilation debug="true" /> to the Web.config file.

正确答案:C

第5题:

You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?()

  • A、Call document.write.
  • B、Call Response.Write.
  • C、Call HttpUtility.UrlEncode.
  • D、Call HttpUtility.HtmlEncode.

正确答案:D

第6题:

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

第7题:

You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

  • A、Ensure that the Web control inherits from the WebControl class.
  • B、Ensure that the Web control inherits from the Control class.
  • C、Ensure that the Web control inherits from the CompositeControl class.
  • D、Ensure that the Web control inherits from the UserControl class.

正确答案:D

第8题:

You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form.You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

A. Include a data source identified as "WebPartConnection1" on the Web Form.

B. Include a Web Part identified as "customerPart" on the Web Form.

C. Include a Web Part identified as "ordersPart" on the Web Form.

D. Ensure that you declare an interface named "IOrdersPart".

E. Ensure that you declare an interface named "ICustomerPart".

F. Ensure that each Web Part declares either a GetInterface or ProvideInterface method.


参考答案:B, C

第9题:

You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

  • A、Include a data source identified as "WebPartConnection1" on the Web Form.
  • B、Include a Web Part identified as "customerPart" on the Web Form.
  • C、Include a Web Part identified as "ordersPart" on the Web Form.
  • D、Ensure that you declare an interface named "IOrdersPart".
  • E、Ensure that you declare an interface named "ICustomerPart".
  • F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.

正确答案:B,C

第10题:

You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a new control for the application. You need to ensure that the control extends the DataGridView control by allowing the cells to contain multicolored text. What should you do?()

  • A、Override the OnPaint method.
  • B、Write a code segment to handle the CellPainting event.
  • C、Write a code segment to handle the CellParsing event.
  • D、Write a code segment to handle the RowPostPaint event.

正确答案:B

更多相关问题