Can anyone explain why I'm getting the following error? Why can't 25852.39 be converted to a double? Isn't it a double value? I tried everything, including triming (the value comes from a textbox) and during dubugging, I've confirm that the string value is just that, the numbers with no other characters. Can anyone shed some light? This is happening a various places in my code so it's a site-wide problem but I just can't figure-out why a number string can't be converted to a number type (double, decimal, etc...). Thanks.
System.InvalidCastException was unhandled by user code
Message="Conversion from string "25852.39" to type 'Double' is not valid."
Source="Microsoft.VisualBasic"
StackTrace:
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.To ...
Go to the complete details ...