I have a little problem with ASP.NET and C#. This is my error code:
An exception of type \'System.FormatException\' occurred in mscorlib.dll but was not
Please try with the below code snippet.
CultureInfo info = CultureInfo.GetCultureInfo("es-ES"); string storedValue = "3,85"; decimal oldAmount; bool succes = Decimal.TryParse(storedValue, NumberStyles.Any, info, out oldAmount);