Last post Oct 23, 2007 04:19 PM by aweil
Oct 22, 2007 05:32 AMfirstname.lastname@example.org|LINK
I am getting some numbers from my database in 1,2,3 .... format.
I want that when I print this number to webpage the user will see the number in his localized form
Can anyone give me the solution?
Oct 22, 2007 07:09 AM|naturehermit|LINK
Read this article http://www.devx.com/dotnet/Article/7000
Oct 22, 2007 07:25 AMemail@example.com|LINK
But in that article we can format the numbers in the localized form.
Like Using commas style in number.
But I want to change 12 to ۱۲
May be you don't see the number which is written in Pakistan Urdu Langauge because of font.
Oct 23, 2007 12:30 PM|jamlew|LINK
If you want to switch between constant values, you'll have to have the Urdu values in the database as well, and you could use a database driven resource manager or some logic block to pull the correct values out. If your values aren't constant, or you don't
want to duplicate your data, you could also build a function that converts between arabic numerals and Urdu numerals, and then call that function as needed.
Oct 23, 2007 04:19 PM|aweil|LINK
In the page directive, add a culture="Auto" or culture="en-US" (or whatever other culture). E.g:
<%@ Page culture="Auto" %>
This will do it!
Should you need more info, have a look at my tutorials:
Hope this helps,