Marcelo Camarate
asked on
Get thousand separator
Hi,
In a ASP.NET application how can I get the client-side thousand separator, date format, etc.?
Other question. Can I get the thousand separator in a javascript function?
Thanks in advance, Camarate
In a ASP.NET application how can I get the client-side thousand separator, date format, etc.?
Other question. Can I get the thousand separator in a javascript function?
Thanks in advance, Camarate
Hi Camarate,
You can look at the Accept-Language request header to determine what preferred language is set on the users browser. In that header you should see the language code and country code (i.e. "en-us") and based off of that code you can create a System.Globalization.Cultu reInfo object that you can use to determine how numbers are formatted in that language/country.
Does this get you in the right direction?
-Darek
You can look at the Accept-Language request header to determine what preferred language is set on the users browser. In that header you should see the language code and country code (i.e. "en-us") and based off of that code you can create a System.Globalization.Cultu
Does this get you in the right direction?
-Darek
ASKER
Hi disrupt,
Thanks for your reply.
But, the two link that you suggested are to format numbers with a comma thousand separators. What I want is to know the thousands separator character that is active on the client side.
Regards, Camarate
Thanks for your reply.
But, the two link that you suggested are to format numbers with a comma thousand separators. What I want is to know the thousands separator character that is active on the client side.
Regards, Camarate
hmm I am not sure why you would want to retrieve that can you elaborate?
http://blog.mattweber.name/2009/04/30/aspnet-get-currency-symbol-from-currency-code/
http://stackoverflow.com/questions/759425/currency-format-string-in-asp-net
maybe these can assist you in some way?
http://stackoverflow.com/questions/759425/currency-format-string-in-asp-net
maybe these can assist you in some way?
Camarate,
Are you trying to perform the formatting with Javascript on the client, or with .NET on the server?
-Darek
Are you trying to perform the formatting with Javascript on the client, or with .NET on the server?
-Darek
ASKER
Hi daDarek,
Thanks for your suggestion. I'll be checking it. To answer your last question, I want to know the thousand separator in both environments, server and client side.
__________________________ __________ __________ _____
Hi disrupt,
Thanks for new suggestions. I'll be checking them.
__________________________ __________ __________ __
Hi all,
I will be going to a outside service, so I can not be checking my emails for a while. So, I will reply you as soon as possible.
Regards, Camarate
Thanks for your suggestion. I'll be checking it. To answer your last question, I want to know the thousand separator in both environments, server and client side.
__________________________
Hi disrupt,
Thanks for new suggestions. I'll be checking them.
__________________________
Hi all,
I will be going to a outside service, so I can not be checking my emails for a while. So, I will reply you as soon as possible.
Regards, Camarate
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
I need more time to check the suggestions because I'm involved entirely in another project.
Regards, Camarate
I need more time to check the suggestions because I'm involved entirely in another project.
Regards, Camarate
http://stackoverflow.com/questions/2646385/add-a-thousands-separator-to-a-total-with-javascript-or-jquery