PrepAway - Latest Free Exam Questions & Answers

Which control markup will you use?

You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You are creating an ASP.NET Web application using .NET Framework 4.0.
The Web application will be accessed by international audience.
The Web application holds global and local resources for display elements that must be translated intothe
language that is preferred by the user.
You are required to ensure that a Label control named CompanyLabel displays text in the user’s preferred
language from the global resource file.
Which control markup will you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<asp:Label lD=”CompanyLabel” runat=”server” Text=”<%$ Resources:WebResources,
Text %>” />

B.
<asp:Label lD=”CompanyLabel” runat=”server” Text=”<% Resources:WebResources %
>” />

C.
<asp:Label lD=”CompanyLabel” runat=”server” Text=”<%$ Resources:WebResources,
CompanyLabelText %>” />

D.
<asp:Label lD=”CompanyLabel” runat=”server” Text=”CompanyLabel” meta:
resourcekey=”CompanyLabel.Text” />

Explanation:
CHAPTER 6 Globalization and Accessibility
Lesson 1:Configuring Globalization and Localization
Attaching Controls and Resources Explicitly (page 298)


Leave a Reply