可学答题网 > 问答 > MCTS(70-528)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You write a Web application. This appl


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. <globalization culture="Auto" />
  • 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
参考答案
参考解析:
分类:MCTS(70-528)题库
相关推荐

1、You create a Web application to proce

You create a Web application to process XML documents. The Web application receives XML document files from several sources, reads them, and st...

2、You write a logging function for a Web

You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler. You test the Web Form and not...

3、You develop a Web application that con

You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the app...

4、You are developing a Web application.

You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following cod...

5、You develop a Web application that wri

You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users. The Web ap...

6、You develop a Web application that co

You develop a Web application that contains two master pages.You need to dynamically set the master page when a user views pages in the appli...