Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi hrabia,

 

Thanks for your response

 

my original question was-->

 

I am using the following code to get the Sybol for the currency, while displaying a field containing money related data.

 

System.Globalization.RegionInfo.CurrentRegion.CurrencySymbol

 

Now the problem is that it displays the Symbol but it displas the $ symbol for the currency while I need a <YEN> symbol for the Japanese currency.

 

Is it because of the <Regional Settings> on my machine. I changed regional settings as well but to no help.

 

Any help would be greatly appreciated.

 

Thanks a lot.

 

 

your Answer:: Try with <globalization> tag and "culture" attribute in web.config

 

 

My next Question ::

 

Thanks a lot for your help.

I introduced the line

culture="en-JP"

in my <Web.Config> like the following. But it didn't work.

 

<globalization

requestEncoding="utf-8"

responseEncoding="utf-8"

culture="en-JP"

/>

 

I need the Japanese currency symbol.

 

Plz. Help...

 

Thanks a lot...

Brijesh

Edited by Brijesh81
Posted
dim ri as RegionInfo = new RegionInfo("JP")
Label1.Text = format("Symbol: {0}", ri.CurrencySymbol)

A man and a dog have an average of three legs.

Beaware of Statistics.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...