[Mono-bugs] [Bug 81027][Maj] New - RegularExpressionValidator Servervalidation broken

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Mar 3 18:08:25 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.


--- shadow/81027	2007-03-03 18:08:25.000000000 -0500
+++ shadow/81027.tmp.22750	2007-03-03 18:08:25.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 81027
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Debian etch on vServer Linux
+Status: NEW   
+Priority: Major
+Component: Sys.Web
+AssignedTo: grendello at gmail.com                            
+ReportedBy: dna at informatik.uni-kiel.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: RegularExpressionValidator Servervalidation broken
+Try the following code:
+<asp:DropDownList ID="DropDownList" runat="server" >
+	<asp:ListItem Selected="True" Text="Item1"
+Value="56ef0c0a-1afc-4b6c-8a89-11c8d837b9a1" />
+	<asp:ListItem Selected="True" Text="Item2"
+Value="0814f574-3c19-4fbe-923c-e0f351821baa" />
+	<asp:ListItem Selected="True" Text="Item3"
+Value="7ed54a91-3a86-477d-9ccf-4c976ba26b67" />
+<asp:RegularExpressionValidator ID="RegularExpressionValidator" runat="server"
+	ControlToValidate="DropDownList" Text="*" ErrorMessage="Please select a
+valid value."
+	ValidationExpression="^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$"
+	Display="Dynamic" />
+If you post the form, the client script matches, but the server one not.
+Actual Results:
+Page.IsValid is false.
+Expected Results:
+Page.IsValid is true.
+The RegEx matches a GUID. And these GUID's are correct.
+Works on .NET 2.0

More information about the mono-bugs mailing list