Display Currency Symbols using ISO standards in ASP.NET

I stumbled across an interesting question about localization/globalization recently. The user wanted to print currency symbols using the ISO standards and wanted to find out if there was an easy way to do so using ASP.NET


Yes, there is! Use the RegionInfo.ISOCurrencySymbol Property. Here’s how


C#

string symbol = RegionInfo.CurrentRegion.ISOCurrencySymbol;

Response.Write(symbol);

VB.NET

Dim symbol As String = RegionInfo.CurrentRegion.ISOCurrencySymbol

Response.Write(symbol)

The output on my system is USD, which is according to the ISO 4217 standards



Will you give this article a +1 ? Thanks in advance


About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal

4 comments:

iso 9000 said...

I absolutely adore reading your blog posts, the variety of writing is smashing.This blog as usual was educational, I have had to bookmark your site and subscribe to your feed in ifeed. Your theme looks lovely.Thanks for sharing.
iso 9000

ISO 9001 said...
This comment has been removed by a blog administrator.
ISO 9001 said...

It was a awe-inspiring post and it has a significant meaning and thanks for sharing the information.Would love to read your next post too......

Thanks

Regards:
ISO 9001

ISO 9001 said...

It was a awe-inspiring post and it has a significant meaning and thanks for sharing the information.Would love to read your next post too......

Thanks

Regards:
ISO 9001