Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / March 2005

Tip: Looking for answers? Try searching our database.

Problems with localization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 03 Mar 2005 16:47 GMT
I have to display content (specially currencies) in the Users local format.
Currently Iam doing below in my code (VB.NET)
----------------------------------------------------------------------------------

Imports System.Web
Imports System.Web.Mail
Imports System.Net
Imports System.IO
Imports System.Globalization
Imports System.Threading

Private Sub Page_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
  Dim sLang As String
  sLang = Request.UserLanguages(0)
  Thread.CurrentThread.CurrentCulture = New CultureInfo(sLang)
End Sub
-----------------------------------------------------------------------------------------

My PC had US  regional settings ... but I changed it to United Kingdom for
testing purpose  by going to Settings>>control panel>>Regional settings . I
even rebooted my PC just to make sure .
If I do String.Format("{0:c}", 0)  somehwhere in my code it displays as
$0.00 instead of  £0.00 on the page
CUrrently my PC is running Windows 2000 professional. I am running the
application as localhost
Any Ideas of what I may be doing wrong......?

Thanks in advance
MasterGaurav - 07 Mar 2005 06:37 GMT
Check you Internet Explorer options:

Tools -> Internet Options -> Languages

It's possible that both of them are listed with en_UK at top.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.