Which control markup should you use?

You are implementing an ASP.NET Web site that will be accessed by an international audience. The
site contains global and local resources for display elements that must be translated into the
language that is selected by the user. You need to ensure that the Label control named lblCompany
displays text in the users selected language from the global resource file. Which control markup
should you use?

You are implementing an ASP.NET Web site that will be accessed by an international audience. The
site contains global and local resources for display elements that must be translated into the
language that is selected by the user. You need to ensure that the Label control named lblCompany
displays text in the users selected language from the global resource file. Which control markup
should you use?

A.
<asp:Label ID=”lblCompany” runat=”server”
meta:resourcekey=”lblCompany” />

B.
<asp:Label ID=”lblCompany” runat=”server”
Text=”meta:lblCompany.Text” />

C.
<asp:Label ID=”lblCompany” runat=”server”
Text=”<%$ Resources:lblCompanyText %>” />

D.
<asp:Label ID=”lblCompany” runat=”server”
Text=”<%$ Resources:WebResources, lblCompanyText %>” />



Leave a Reply 0

Your email address will not be published. Required fields are marked *