开发者

how to change the FormatCurrency()?

开发者 https://www.devze.com 2023-01-16 05:26 出处:网络
I am using this line : FormatCurrency(DBReader(\"Price\").ToString, 2, True) to format my Currency and I have two websites, the first one is English and the second is Arabic.

I am using this line :

FormatCurrency(DBReader("Price").ToString, 2, True)

to format my Currency and I have two websites, the first one is English and the second is Arabic.

In the English website the price will be in $ Currency because the the localization setting is set as "en-US".

In the Arabic website the price will be in ل.ل Currency because the the localization setting is set a开发者_开发问答s "ar-LB".

The question is how to format this code:

FormatCurrency(DBReader("Price").ToString, 2, True)

to make the currency in the $ only in both websites?


Check out the examples here, that use the overloaded toString function coupled with a format specifier and locale.


In your FormatCurrency method make use of NeutralCulture or en-US culture

0

精彩评论

暂无评论...
验证码 换一张
取 消