Vou 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?
A.
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.
B.
In the page code-behind, override the InitializeCultureQ 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.
C.
Create a div element and set its lang attribute to the selected CalendarType value. Put
the calendar control inside the div element.
D.
Create a Localize control and set its Mode attribute to Transform. Put the calendar
control inside the Localize control.