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
精彩评论