Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Calender control, how to display week days as English even windows region is Chinese?

Reply
Thread Tools

Calender control, how to display week days as English even windows region is Chinese?

 
 
Jack
Guest
Posts: n/a
 
      10-11-2005
To whom may concern:

In Asp.Net Calender control, how to display week days, like Wednesday
as "Wed", Monday as "Mon", even my windows' region is set to Chinese?

Thanks in advance!

Jack
2005-10-11

 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      10-11-2005
If you want to display English characters, instead of Chinese, and you have
your Windows Region set to Chinese, set the web.config's globalization
culture and uiCulture settings to "en-US" or "en-GB", depending on
whether you want US English or UK english :

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
culture="en-US"
uiCulture="en-US"
/>

That has a global effect on all files in the
directory the calendar is in, though.

If you want to change it for a single page, set the culture in the Page directive.

<%@ Page Language="VB" Culture="en-US" uiCulture="en-US" %>

That will cause that page, including the calendar, to be displayed in English.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Jack" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> To whom may concern:
>
> In Asp.Net Calender control, how to display week days, like Wednesday
> as "Wed", Monday as "Mon", even my windows' region is set to Chinese?
>
> Thanks in advance!
>
> Jack
> 2005-10-11
>



 
Reply With Quote
 
 
 
 
Jack
Guest
Posts: n/a
 
      10-12-2005
It works fine!
Thank you very much!

Jack

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to make English-speaking friend to practic my poor English IchBin Java 1 03-26-2006 05:36 AM
English/English DLL =?Utf-8?B?UmFlZCBTYXdhbGhh?= ASP .Net 2 10-16-2005 10:32 AM
Calender with week numbers LG Javascript 8 12-13-2004 04:19 PM
Dictionaries for English-French and English-Spanish fkissam Computer Support 2 07-14-2004 09:07 PM
Disabling some of the days in a Calender Sudhir Pai ASP .Net Web Controls 1 07-21-2003 12:40 PM



Advertisments