PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
In the page code-behind, override the InitializeCulture() method and set the thread’s
CurrentUICulture property to a new instance of the Culturelnfo class. Set the value of the
DateTimeFormatlnfo.Calendar property based on the Request.Form collection.

B.
In the page code-behind, override the OnInit() method and set the thread’s
CurrentUICulture property to a new instance of the Culturelnfo class. Set the value of the
DateTimeFormatlnfo.Calendar property based on the ViewState dictionary.

C.
Create a Localize control and set its Mode attribute to Transform. Put the calendar
control inside the Localize control.

D.
Create a div element and set its lang attribute to the selected CalendarType value. Put
the calendar control inside the div element.

Explanation:


Leave a Reply