Hi Stephen,
Thanks for your posting. As for the Globalization of the asp.net Calendar
control, we just need to set the appropriate CultureInfo for the web
request's current executing thread. For example:
private void Page_Load(object sender, System.EventArgs e)
{
System.Globalization.CultureInfo ci = new
System.Globalization.CultureInfo("ar-EG");
ci.DateTimeFormat.Calendar = new System.Globalization.HijriCalendar();
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
.....
}
Then, the buildin ASP.NET web controls will render the appropriate style
html contents according to the current thread's UICultureInfo. And to use
the HijriCalendar, we can create a HijriCalendar instance and assign it to
the CultureInfo object's DataTimeFormat.Calendar property( see above).
Hope helps. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)