473,573 Members | 3,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Globaliz ation
Imports System.Threadin g

Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
Dim sLang As String
sLang = Request.UserLan guages(0)
Thread.CurrentT hread.CurrentCu lture = New CultureInfo(sLa ng)
End Su
-----------------------------------------------------------------------------------------

My PC had US regional settings ... but I changed it to United Kingdom for
testing purpose by going to Settings>>contr ol 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 983

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2473
by: reidarT | last post by:
Is it possible to control the calendar with Culture Info. Actually the name of the days and months. And how do I activate it_ regards Reihaa
1
3839
by: Dejan Vesic | last post by:
I found nasty "documentation" bug; ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemglobalizationcultureinfoclasstopic.htm claims that proper culture info name for Serbian (Cyrillic) - Serbia is "Cy-sr-SP" but if you try this, you will get "Culture name Cy-sr-SP is not supported" exception. If you set up culture info via...
0
1351
by: Mircea Pleteriu | last post by:
How to set the culture info of the Crystal Report document according to the aspx page's culture info ? I need it for numbers on the report
2
599
by: JezB | last post by:
How do I programatically set the culture at session level ?
3
2162
by: Ashish | last post by:
I have a application in which culture settings are customizable, they dont depend on the machine settings on which the application is running, I need to make sure that all the threads running in the application have the correct culture settings .. I have some questions to better understand this concept .. 1. Is every thread in asp.net...
2
1051
by: cmrchs | last post by:
Hi, I try to obtain the current culture of a server by executing : Dim str as String str = Thread.CurrentThread.CurrentCulture.ToString() Executing this in a console-applicastion results in the correct string (e.g. "en-AU") but when executing in ASP.NET does the command always return "en-US" ???
2
33642
by: Tsair | last post by:
I would like to use the date format as dd/mm/yyyy, normaly i have to set the Windox XP culture info. How to set the application culture to the format i need winthout change the Windox XP setting ? Thanks.
9
3910
by: Edge | last post by:
hi, I am saving the user selected culture in a session variable so I can apply it back to all pages when refreshed and then load the proper .resx values. For that I am using global.asax
1
4156
by: David Thielen | last post by:
Hi; How do I get the client user culture? I need to get the names for the weeks/months, num days/week, months/year, days/month, etc to display date selections to the user correctly. -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com
2
6294
by: tamirmalas | last post by:
Hi, iam trying to set a culture info different than the current culture info on the system, the code compiles fine, but nothing happens, and the system culture is the one used for the program. here is the code : ////////////////////// CultureInfo ci = new CultureInfo("ar-SA"); // arabic Saudi Arabia
0
7741
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7977
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8165
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2163
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1256
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.