473,657 Members | 2,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wrong currency symbol in .asp app

Hi There

Probably missing something drastically obvious here....

I have just moved an .asp application from a test IIS server to a running
IIS server and have become confused... I am using format(blah blah,
"c").ToStri ng

From what I can see both servers are configured exactly the same as far as
regional settings are concerned - however, the new server insists on showing
currency symbol as $ and is also showing the date in an unusual format

What am I missing ?

Thanks
Nov 19 '05 #1
5 3957
What do you have in the globalization section of your web.config file ?

Patrice

--

"Stuart" <St****@discuss ions.microsoft. com> a écrit dans le message de
news:13******** *************** ***********@mic rosoft.com...
Hi There

Probably missing something drastically obvious here....

I have just moved an .asp application from a test IIS server to a running
IIS server and have become confused... I am using format(blah blah,
"c").ToStri ng

From what I can see both servers are configured exactly the same as far as
regional settings are concerned - however, the new server insists on showing currency symbol as $ and is also showing the date in an unusual format

What am I missing ?

Thanks

Nov 19 '05 #2
Hi

globalization requestEncoding ="utf-8" responseEncodin g="utf-8" /

I did not expect this to be aproblem as it works on one and not the
other....but please tell me if I am wrong

Thanks for your help

"Patrice" wrote:
What do you have in the globalization section of your web.config file ?

Patrice

--

"Stuart" <St****@discuss ions.microsoft. com> a écrit dans le message de
news:13******** *************** ***********@mic rosoft.com...
Hi There

Probably missing something drastically obvious here....

I have just moved an .asp application from a test IIS server to a running
IIS server and have become confused... I am using format(blah blah,
"c").ToStri ng

From what I can see both servers are configured exactly the same as far as
regional settings are concerned - however, the new server insists on

showing
currency symbol as $ and is also showing the date in an unusual format

What am I missing ?

Thanks


Nov 19 '05 #3
What do you have for
culture and uiCulture ?

<globalizatio n
culture="xx-XX"
uiCulture="xx-XX" />

?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=============== ======

"Stuart" <St****@discuss ions.microsoft. com> wrote in message
news:79******** *************** ***********@mic rosoft.com...
Hi

globalization requestEncoding ="utf-8" responseEncodin g="utf-8" /

I did not expect this to be aproblem as it works on one and not the
other....but please tell me if I am wrong

Thanks for your help

"Patrice" wrote:
What do you have in the globalization section of your web.config file ?

Patrice

--

"Stuart" <St****@discuss ions.microsoft. com> a écrit dans le message de
news:13******** *************** ***********@mic rosoft.com...
> Hi There
>
> Probably missing something drastically obvious here....
>
> I have just moved an .asp application from a test IIS server to a
> running
> IIS server and have become confused... I am using format(blah blah,
> "c").ToStri ng
>
> From what I can see both servers are configured exactly the same as far
> as
> regional settings are concerned - however, the new server insists on

showing
> currency symbol as $ and is also showing the date in an unusual format
>
> What am I missing ?
>
> Thanks


Nov 19 '05 #4
Sorry meant the culture entries. AFAIK the best way to control is those
specific files (web.config for a single app, machine.config for all ASP.NET
sites) so that you do'nt have any more to deal with control panel
settings...

See aroound
http://msdn.microsoft.com/library/de...balization.asp
for details...
Patrice

--

"Stuart" <St****@discuss ions.microsoft. com> a écrit dans le message de
news:79******** *************** ***********@mic rosoft.com...
Hi

globalization requestEncoding ="utf-8" responseEncodin g="utf-8" /

I did not expect this to be aproblem as it works on one and not the
other....but please tell me if I am wrong

Thanks for your help

"Patrice" wrote:
What do you have in the globalization section of your web.config file ?

Patrice

--

"Stuart" <St****@discuss ions.microsoft. com> a écrit dans le message de
news:13******** *************** ***********@mic rosoft.com...
Hi There

Probably missing something drastically obvious here....

I have just moved an .asp application from a test IIS server to a running IIS server and have become confused... I am using format(blah blah,
"c").ToStri ng

From what I can see both servers are configured exactly the same as far as regional settings are concerned - however, the new server insists on

showing
currency symbol as $ and is also showing the date in an unusual format

What am I missing ?

Thanks


Nov 19 '05 #5
thanks very much - this did the trick when set to en-GB

"Patrice" wrote:
Sorry meant the culture entries. AFAIK the best way to control is those
specific files (web.config for a single app, machine.config for all ASP.NET
sites) so that you do'nt have any more to deal with control panel
settings...

See aroound
http://msdn.microsoft.com/library/de...balization.asp
for details...
Patrice

--

"Stuart" <St****@discuss ions.microsoft. com> a écrit dans le message de
news:79******** *************** ***********@mic rosoft.com...
Hi

globalization requestEncoding ="utf-8" responseEncodin g="utf-8" /

I did not expect this to be aproblem as it works on one and not the
other....but please tell me if I am wrong

Thanks for your help

"Patrice" wrote:
What do you have in the globalization section of your web.config file ?

Patrice

--

"Stuart" <St****@discuss ions.microsoft. com> a écrit dans le message de
news:13******** *************** ***********@mic rosoft.com...
> Hi There
>
> Probably missing something drastically obvious here....
>
> I have just moved an .asp application from a test IIS server to a running > IIS server and have become confused... I am using format(blah blah,
> "c").ToStri ng
>
> From what I can see both servers are configured exactly the same as far as > regional settings are concerned - however, the new server insists on
showing
> currency symbol as $ and is also showing the date in an unusual format
>
> What am I missing ?
>
> Thanks


Nov 19 '05 #6

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

Similar topics

1
3850
by: Kevin | last post by:
Hi, I want to check that a string entered via a from contains the only cdertain characters including the Euro currency symbol using a reg exp in PHP. I've set my web page to use charset=iso-8859-15 and tried $allowed = ""; if ( ereg( $allowed, $str) )
1
10299
by: Sakharam Phapale | last post by:
Hi All, I want to change currency symbol of current culture. I am trying to do this by following code. Dim obj As CultureInfo = System.Globalization.CultureInfo.CurrentCulture() obj.NumberFormat.CurrencySymbol = "Rs" Session.LCID = obj.LCID
2
5680
by: zlf | last post by:
Hi, Run this code will cause format exception. I think the problem is induced by using System.Globalization.NumberStyles.Currency since I used customed currency symbol("My Dollar:"). Please tell me how to modify this block of code.Thanks Console.WriteLine ( NumberValue.ToString ( formatString , n ) ); NumberFormatInfo numberFormatInfo = new System.Globalization.NumberFormatInfo();
2
2106
by: Paul [Paradise Solutions] | last post by:
Hi All In a console app I have the following code: Sub Main() Dim p_CustomerLine As String Dim stream As IO.StreamReader = IO.File.OpenText("c:\test.txt") Do p_CustomerLine = stream.ReadLine()
0
1377
by: Sakharam Phapale | last post by:
Hi All, I want to change currency symbol of current culture. I am trying to do this by following code. Dim obj As CultureInfo = System.Globalization.CultureInfo.CurrentCulture() obj.NumberFormat.CurrencySymbol = "Rs" Session.LCID = obj.LCID
6
4223
by: SpydrSS | last post by:
Hi there. Thanks for a great forum and to all of you have provided help in the past. I have a rather small problem. I sell turnkey sites in South Africa, but obviously we don't market them locally, so all the turnkeys are in dollars or Ponds. So here's my problem, I installed a site for a customer for realty, but the whole site is databased driven, and there's only an option for Dollar and you guessed it Pounds. All i need to do is...
1
3160
by: =?Utf-8?B?SGlwSG9wcGVy?= | last post by:
Hi, I have a composited control with a Textbox and a Rangevalidator. If I am not mistaken, Rangevalidator should take currency ($) symbol, but I got the validation error when user enter -$100 in the text box. It will succeed if -100. So I tried add a property called "MoneyValue", return a Decimal only value and use , hopping RangeValidator
7
9187
by: shalskedar | last post by:
Can i define my own currency symbol.... I need to maintain money value in my db as different from the standard ones as listed in the Format option.. Does Ms Access provide with any such utility..
1
2236
by: chandhseke | last post by:
Hi, I have requirement to pre-populate currency symbols in excel report generated using ASP. Please review the code below and help in fixing this. <%@ Language=VBScript %> <% Response.Buffer = True %> <!--#include file="connection.asp"--> <% vSQL = Request.Form("SQLSelect")
0
8392
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8730
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6163
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.