Hi,
At runtime, the calendar control picks up the culture info from the server.
You can override the default behaviour by setting the culture of the thread
the calendar is on:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim ci As System.Globalization.CultureInfo
Dim dtNow As Date = DateTime.Now
Dim strName As String = "he-IL"
System.Threading.Thread.CurrentThread.CurrentUICul ture = _
New System.Globalization.CultureInfo(strName, False)
System.Threading.Thread.CurrentThread.CurrentCultu re = _
New System.Globalization.CultureInfo(strName)
Calendar1.SelectedDate = dtNow
Calendar1.VisibleDate = dtNow
End Sub
Let us know if this helps?
Ken
Microsoft MVP [ASP.NET]
Toronto
"rom" <> wrote in message
news:06ca01c4d7ec$13bd4000$...
> in visual studio.net when i watch/design the calendar
> control on the design view i see the days/months in my
> language(hebrew) but on the web is generates it into
> english. any way to solve this problem?
|