Add the following configuration section to the Web.config file.
Set the directive for each page in your site as follows:<%@ page= uiculture=“Auto”>
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”;
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?()
第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? ()
第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?()
第4题:
In isolated storage.
On the database server.
In the ClickOnce data directory.
In the App.config file of the application.
第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?()
第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? ()
第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? ()
第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?()
第9题:
<%: Model.FirstName %>
<%= Model.FirstName %>
<% Response.Write(Model.FirstName) %>
<% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %>
第10题:
Enable Anonymous access. Enable Integrated Windows authentication.
Enable Anonymous access. Enable Basic authentication.
Disable Anonymous access. Enable Integrated Windows authentication.
Disable Anonymous access. Enable Basic authentication.