471,310 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

seeting culture info dynamically

Ed
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 Su
-----------------------------------------------------------------------------------------

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

--
Thanks in advance
Jul 21 '05 #1
0 930

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by reidarT | last post: by
reply views Thread by Mircea Pleteriu | last post: by
2 posts views Thread by JezB | last post: by
3 posts views Thread by Ashish | last post: by
2 posts views Thread by cmrchs | last post: by
2 posts views Thread by Tsair | last post: by
1 post views Thread by David Thielen | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.