开发者

how to change the FormatCurrency()?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜