October 19, 2009

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



'Like' us on our FaceBook page if you find this blog useful. Thanks!


Did you like this post?
kick it on DotNetKicks.com Save on Delicious
subscribe via rss subscribe via e-mail
print this post follow me on twitter


About The Author

Suprotim Agarwal, ASP.NET Architecture MVP 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 has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal

comments

4 Responses to "Display Currency Symbols using ISO standards in ASP.NET"
  1. iso 9000 said...
    July 29, 2011 2:58 AM

    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

  2. ISO 9001 said...
    September 22, 2011 5:31 AM
    This comment has been removed by a blog administrator.
  3. ISO 9001 said...
    October 4, 2011 11:32 PM

    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

  4. ISO 9001 said...
    October 4, 2011 11:32 PM

    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

 

Copyright © 2009-2012 All Rights Reserved for DevCurry.com by Suprotim Agarwal | Terms and Conditions