PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

You are designing an ASP.NET Web application. Each page of the Web application will
have a common master page and derive from a common base page class. You have the
following requirements: Support multiple languages for user interface labels. Enable
automatic detection of language based on browser language settings. You need to
recommend an approach to support localization. What should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
In the code-behind for the master page, override the OnInit() method. Set the
Thread.CurrentThread.currentUICulture property based on the value of the
Request.Browser.Capabilities[“preferredLanguage”] dictionary entry.

B.
In the Web.config file, add a globalization element with the responseEncoding attnbute
set to auto.

C.
In the Web.config file, add a globalization element with the uiCulture attribute set to auto.

D.
In the code-behind for the base page, override the InitializeCultureQ method. Set the
Thread.CurrentThread.CurrentUICulture property based on the value of the
ViewState[“Accept- Longuage”J dictionary entry.


Leave a Reply