Hi,
RicercatoreSbadato wrote:
I'd like to change the "CultureInfo" of my site.
Which instruction I have to put in the 'web.config' ?
any ideas?
tnx ;)
In web.config:
<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
culture="en-GB"
uiCulture="en-GB"
/>
In code-behind:
System.Threading.Thread.CurrentThread.CurrentCultu re
= new System.Globalization.CultureInfo( "en-GB" );
System.Threading.Thread.CurrentThread.CurrentUICul ture
= new System.Globalization.CultureInfo( "en-GB" );
Note: This affects the culture of the current thread only. Since each
request runs in a different thread, you must set it for each request
separately (i.e. in the Page's OnInit for example).
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
Private/Malaysia:
http://mypage.bluewin.ch/lbugnion
Support children in Calcutta:
http://www.calcutta-espoir.ch