[Mono-bugs] [Bug 81021][Maj] New - RangeValidator don't correctly check intergers

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Mar 3 11:03:30 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dna at informatik.uni-kiel.de.

http://bugzilla.ximian.com/show_bug.cgi?id=81021

--- shadow/81021	2007-03-03 11:03:30.000000000 -0500
+++ shadow/81021.tmp.9696	2007-03-03 11:03:30.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 81021
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Debian etch on vServer Linux
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Major
+Component: Sys.Web
+AssignedTo: grendello at gmail.com                            
+ReportedBy: dna at informatik.uni-kiel.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: RangeValidator don't correctly check intergers
+
+Try the following code:
+<asp:DropDownList ID="CategoryDropDownList" runat="server">
+	<asp:ListItem Selected="True" Text="Name1" Value="1" />
+	<asp:ListItem Text="Name2" Value="2" />
+</asp:DropDownList>
+
+<asp:RangeValidator ID="CategoryRangeValidator" runat="server"
+ControlToValidate="CategoryDropDownList"
+	Text="*" ErrorMessage="Wrong value." Type="Integer"
+	MinimumValue="1" MaximumValue="2" Display="Dynamic" />
+
+If you try to post the form, the validator is always false.
+Works on .NET 2.0
+
+This example works on Mono with: MinimumValue="0" MaximumValue="3"


More information about the mono-bugs mailing list