IT Readings Log   

Wednesday, April 27, 2005

ASP.Net RangeValidator Issue

Situation: try to implement a RangeValidator by setting it's Type to Double (MSDN quote for "Double" Type of Validator: "Specifies a double-precision floating-point number data type."), set the MinimumValue to 0 for example and then try to set it's Maximum Value to the maximum Double Value (maximum value allowed by Double Type of Data - MSDN: 1.79769313486232e308) or to a value close to that, like 1.79769313486232E+307 and so on..., try to place it in a string, convert it, whatever... it won't work. It will work only in one case, if you write the entire number without scientific notation and wtire it as a string, using doublequotes. See article:

http://stup.org/blogs/nidhogg/archive/2004/12/15/410.aspx

0 Comments:

Post a Comment

<< Home