Microsoft
70-519 · Question #153
You are designing an ASP.NET Web application. A page of the Web application will use the ASP.NET Calendar server control. Users will select the type of calendar from a drop-down list named…
The correct answer is C. In the page code-behind, override the InitializeCulture() method and set the thread's. See the full explanation below for the reasoning.
Question
You are designing an ASP.NET Web application. A page of the Web application will use the ASP.NET Calendar server control. Users will select the type of calendar from a drop-down list named CalendarType. The CalendarType list contains cultural preferences. You need to recommend an approach for rendering the calendar control based on the selected cultural preference. What should you recommend?
Options
- ACreate a div element and set its lang attribute to the selected CalendarType value.
- BCreate a Localize control and set its Mode attribute to Transform.
- CIn the page code-behind, override the InitializeCulture() method and set the thread's
- DIn the page code-behind, override the OnInit() method and set the thread's CurrentUICulture
How the community answered
(29 responses)- A14% (4)
- B3% (1)
- C76% (22)
- D7% (2)
Community Discussion
No community discussion yet for this question.