Parse both symbols . and , as decimal digits delimiter in ASP.NET
- by abatishchev
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?