PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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