Which code segment should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You create a Web page named Default.aspx in the root of the application. You
add an ImageResources.resx resource file in the App_GlobalResources folder. The
ImageResources.resx file contains a localized resource named LogoImageUrl. You need to
retrieve the value of LogoImageUrl. Which code segment should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You create a Web page named Default.aspx in the root of the application. You
add an ImageResources.resx resource file in the App_GlobalResources folder. The
ImageResources.resx file contains a localized resource named LogoImageUrl. You need to
retrieve the value of LogoImageUrl. Which code segment should you use?

A.
string logoImageUrl = (string)GetLocalResource(“LogoImageUrl”);

B.
string logoImageUrl = (string)GetGlobalResource(“Default”, “LogoImageUrl”);

C.
string logoImageUrl = (string)GetGlobalResource(“ImageResources”, “LogoImageUrl”);

D.
string logoImageUrl = (string)GetLocalResource(“ImageResources.LogoImageUrl”);



Leave a Reply 0

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