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.
Dim logoImageUrl As String = DirectCast(GetLocalResource("LogoImageUrl"), String)

B.
Dim logoImageUrl As String = DirectCast(GetGlobalResource("Default", "LogoImageUrl"), String)

C.
Dim logoImageUrl As String = DirectCast(GetGlobalResource("ImageResources", "LogoImageUrl"), String)

D.
Dim logoImageUrl As String = DirectCast(GetLocalResource("ImageResources.LogoImageUrl"), String)


Leave a Reply