I have a problem and I am not able to resolve it at all. Problem is simple: I want to change the $ to £.
Found here (http://forums.asp.net/thread/1393215.aspx) short info
but I am not able to implement this line of code (<globalizationrequestEncoding="utf-8"responseEncoding="utf-8"culture="en-GB"uiCulture="en-GB" />
)
anywhere.
Would you please in two sentence (and if possible in plain English) tell me what exactly I have to do to change the $ to £?
Thank you very much for advice.
Regards,
Den
PS. Everything else regarding Classifieds is absolutely great – I love it. Asp.net (with VWD, sql server, …) is great and very refreshing after years
working on boring htm sites with dreamviewer, flash, frontpage,... This forum is also great help – THANK YOU GUYS/GIRLS.
didi8181
0 Points
30 Posts
$ to £ - second time
Jan 27, 2007 04:04 PM|LINK
Hi,
I have a problem and I am not able to resolve it at all. Problem is simple: I want to change the $ to £.
Found here (http://forums.asp.net/thread/1393215.aspx) short info but I am not able to implement this line of code (<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB" uiCulture="en-GB" />
) anywhere.
Would you please in two sentence (and if possible in plain English) tell me what exactly I have to do to change the $ to £?
Thank you very much for advice.
Regards,
Den
PS. Everything else regarding Classifieds is absolutely great – I love it. Asp.net (with VWD, sql server, …) is great and very refreshing after years working on boring htm sites with dreamviewer, flash, frontpage,... This forum is also great help – THANK YOU GUYS/GIRLS.
mokeefe
Star
10850 Points
2098 Posts
Re: $ to £ - second time
Jan 28, 2007 04:14 AM|LINK
The currecny format is provided by FormatCurrency etc.
Ref ->
Web Config
http://msdn2.microsoft.com/en-us/library/hy4kkhe0.aspx
Web Config Extract
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB" uiCulture="en-GB" />
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="true" explicit="true"/>
<pages>
…………
Page Test
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Response.Write(FormatCurrency("12000", 2))
End Sub
Culture Codes
http://msdn2.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx
Regards,
Martin.
Martin.
For the benefit of all users please mark any post answers as appropriate.