Parse both symbols . and , as decimal digits delimiter in ASP.NET
Posted
by abatishchev
on Stack Overflow
See other posts from Stack Overflow
or by abatishchev
Published on 2010-05-05T10:00:20Z
Indexed on
2010/05/05
10:18 UTC
Read the original article
Hit count: 310
I'm writing a banking system and my customer wants support both Russian and American numeric standards in decimal digits delimiter. Respectively . and ,.
Now only , works properly. Perhaps because of web server's OS format (Russian is set).
String like 2000.00 throws a FormatException:
Input string was not in a correct format.
How to fix that? Are there any other ideas except String.Replace('.', ',') on FormView.ItemInserting event?
© Stack Overflow or respective owner