Hi everybody, I'm latin american and was trying to show date on my pages. It works very fine and date is shown in spanish (long format) as i expected on my dev environment but when i try to put my web app on the production server date is shown in english. I
don't know why, 'cause my production server is in spanish too, and regional settings are the same!!! There are some workarounds for get it working, some of them are about using the Culture property of WebForms, that sounds rare for me due to in my dev server
it works without using that property. Does anybody know how can i have the same environment for getting dates in right format in both servers? Your help is very appreciated. Thanks in advance.
I'm not sure of the server level settings but I can tell you how to make each web form use your culture. Set the property to your Culture ID (es-??) on each web form.
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
Yeah man, i did it to solve my problem, but i needed a more generic form to do tht, i mean, doing that in just one place. I don't know how to do that, but of course if you know that i'll thank you very much. See you.
You can set culture info for each page request in global ASAX pages BeginRequest method. MSDN link on BeginRequest: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpapplicationclassbeginrequesttopic.asp MSDN link
on setting culture: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtsksettingcultureuicultureforwebformsglobalization.asp - Eric McVicker
larrydotnet
Member
278 Points
125 Posts
Question about Internationalization (LANGUAGE)
Jan 08, 2004 08:00 PM|LINK
PLBlum
All-Star
30399 Points
5347 Posts
MVP
Re: Question about Internationalization (LANGUAGE)
Jan 09, 2004 03:37 PM|LINK
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
larrydotnet
Member
278 Points
125 Posts
Re: Question about Internationalization (LANGUAGE)
Jan 16, 2004 02:28 AM|LINK
JOAC
Participant
1880 Points
376 Posts
Re: Question about Internationalization (LANGUAGE)
Jan 16, 2004 06:20 PM|LINK
larrydotnet
Member
278 Points
125 Posts
Re: Question about Internationalization (LANGUAGE)
Jan 23, 2004 02:48 PM|LINK