Currency format
-
Hi, I want to convert a particular integer value into indian currency format. I am using this particular code, but it is resulting in dollars. I want the output in rupees format. int price = String.Format("{0:C}",1234567); Thank you
-
Hi, I want to convert a particular integer value into indian currency format. I am using this particular code, but it is resulting in dollars. I want the output in rupees format. int price = String.Format("{0:C}",1234567); Thank you
I think you should set the culture as hindi (or your culture) before calling this line.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
I think you should set the culture as hindi (or your culture) before calling this line.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
But Hindi or india is not available in regional settings Any code from aspx page to do that.?
-
But Hindi or india is not available in regional settings Any code from aspx page to do that.?
SUDHAKAR PALLAM wrote:
But Hindi or india is not available in regional settings
No. You can add this language in Regional Settings. Ref : http://mastercsharp.com/article.aspx?ArticleID=79&TopicID=3[^] http://in.hindi.yahoo.com/FAQ_English.htm#Enable_Indic_for_Windows_XP_&_above[^] Actually, you don't need to change this in Regional setting. You can set this culture in ASP.NET at runtime.. You can read the link below if you want to know about how to change the culture in ASP.NET. http://msdn2.microsoft.com/en-us/library/bz9tc508.aspx[^]
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)