Ask a Question related to ASP.NET General, Design and Development.
-
Manu #1
How to change the current thread current culture at run time.
I have created a new culture :
Dim objCulture As New CultureInfo("he") //hebrew
When I tried to assign it to the current thread.
Thread.CurrentThread.CurrentCulture = objCulture
Thread.CurrentThread.CurrentUICulture = objCulture
This Caused an exception :
" Culture "he" is a neutral culture. It can not be used in
formatting and parsing and therefore cannot be set as the
thread's current culture. "
what is the problem ?
Manu Guest
-
Current month change
Hello, Total n00b here who needs help. I have a list of weblog (blog) entries in a database which are being retrieved by index.php with a string... -
Current Time
I need to show a current time in this mode ( 29.3 secondes ) how i do ?? I use this for show current time in this mode ( 29340 ) i don't know... -
HttpContext.Current.User vs. Thread.CurrentPrincipal
How are HttpConext.Current.User and Thread.CurrentPrincipal different? It seems that they can be set differently in different places. Why would... -
Current time in a procedure ??!!
Hi, i want to put a lot of trace (log time in a table) in some procedure. The function "current" show the same time by statement. How can i get... -
Could not instantiate ActiveX control because the current thread is not in a si
Getting "Could not instantiate ActiveX control because the current thread is not in a single-threaded apartment. " error while using AxMSComLib... -
Natty Gur #2
Re: How to change the current thread current culture at run time.
Hi,
The right way to set neutral culture is by using CreateSpecificCulture
static function :
System.Threading.Thread.CurrentThread.CurrentCultu re =
System.Globalization.CultureInfo.CreateSpecificCul ture("he");
Neutral cultures are cultures that just the language set, without the
location.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

