首页/ 题库 / [单选题]You write a Web 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.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? ()

单选题
2022-05-21 04:28
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

试题解析

标签: MCTS(70-528)
感兴趣题目

You are in the process of creating a new application.
This new application has to be able to read all data from a text file.
What should you do?()

You have recently completed the creation of a new application.
Certkiller .com requires you to ensure that this new application creates a file that contains an array of bytes.
What should you do?()

The overuse of modern technologies in recreational activities makes human beings less creative. Do you agree or disagree? Write a composition of about 400 words on this topic.
Practice 6  You should spend about 40 minutes on this task.  Write about the following topic:  News media is more influential nowadays. Some people think it is a negative development. To what extent do you agree or disagree?  You should write at least 250 words.
A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1. 3. The sort.jsp page is requested. Which two are true?()
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? ()
Directions: For this part, you are allowed 30 minutes to write a short essay entitled. Does an Intensive Training Course Really Help? You should write at least 140 words.
For this part, you need to write an essay expressing your opinion on whether a wall makes it easier or more difficult to be a good neighbor. You should write no fewer than 120 words.  Please write your composition on the answer sheet.
You have a Web server named Server1 that runs Windows Server 2003 Service Pack 2 (SP2). Server1 hosts 100 Web sites. Each Web site uses a different application pool. You need to limit the network bandwidth for one of the Web sites. What should you do? ()
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 notice that the Page_Unload event handler does not call the logging function. You need to ensure that the logging function is called. What are two possible ways to achieve this goal? ()
You work with a newly created database. Presently, there is no application load on the database instance.You want to create a baseline for tuning the application, so you decide to collect recommendations that can be implemented to improve application performance.What action must you take to achieve this?()
With techniques for running applications on most PC, you can ( ) a desktop icon or select the application from a menu.
相关题目
For which job do you need to write a letter in order to get an application form?

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?()

Directions: For this part, you are allowed 30 minutes to write a short essay entitled Announcement. You should write at least 150 words following the outline given below:

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?()

You create a mobile Web application. You need to use a Command control to post user input from the UI elements back to the server. What are two possible ways to achieve this goal?()

You recently developed a Web application that accesses an external Web service to retrieve current exchange rates for Certkiller .com's e-Commerce Web site. The Web service converts USD prices to the customer's local currency. You have stored the URL to the external Web service's endpoint in the section of the Web.config file. The Web application has been successfully deployed to a Certkiller .com Web server named Certkiller -SR14. A few months later the vendor of the Web service changes the port that is used to access the Web service. You need to update the section of the Web application's Web.config file from Certkiller -WS528. You need to ensure that your solution has a minimal impact on customers that may be connected to the e-Commerce Web site.
What should you do?()

Exhibit: You are developing a Web application. The Web application uses a GridView control to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit. During the process, you need to configure the .NET Data Provider that you use to create the data source objects. What should you do?()

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? ()

You are developing a Windows Presentation Foundation (WPF) application.
You need to display HTML content from a Web Page on the WPF form. What should you do?()

You are developing a Windows Presentation Foundation (WPF) application.You need to display HTML content from a Web page on the WPF form. What should you do?()
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 application. What should you do? ()

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? ()

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 application. What should you do? ()

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 application.
What should you do?()

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 application. What should you do?()
Practice 1  You should spend about 40 minutes on this task.  Write about the following topic:  Multi-cultural societies, in which there is a mixture of different ethnic peoples, bring more benefits than drawbacks to a country. To what extent do you agree or disagree?  You should write at least 250 words.
Directions: For this part,you are allowed thirty minutes to write a composition on the topic:Reading Selectively Or Extensively? You should write 140 words.
Directions: For this part, you are allowed thirty minutes to write a composition on the topic: Harmfulness of Fake Commodities. You should write 140 words.
Directions: For this part, you are allowed thirty minutes to write a composition on the topic: Do “Lucky Numbers” Really Bring Good Luck? You should write 140 words.
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? ()
广告位招租WX:84302438

免费的网站请分享给朋友吧