[Mono-bugs] [Bug 77149][Nor] New - FieldValidators triggered on page load

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 3 16:45:08 EST 2006


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 vigs at lycos.com.

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

--- shadow/77149	2006-01-03 16:45:08.000000000 -0500
+++ shadow/77149.tmp.19341	2006-01-03 16:45:08.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 77149
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Ubuntu 5.10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: vigs at lycos.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FieldValidators triggered on page load
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Field Validators with 'Display' property set to 'Dynamic' on a web form are
+triggered/displayed automatically on page load.
+
+Steps to reproduce the problem:
+1. Create a webform with one textbox and one RequiredFieldValidator control.
+2. Set the 'ControlToValidate' property to the textbox and set the
+'Display' property to 'Dynamic'.
+3. Run!
+
+Actual Results:
+Validator error message is displayed on page load.
+
+Expected Results:
+Validator error message should not be displayed on page load.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+
+<%@ Page language="c#"%>
+
+
+
+<HTML>
+
+	<HEAD>
+
+		<title>WebForm1</title>
+
+
+	</HEAD>
+
+	<body>
+
+		<form id="Form1" method="post" runat="server">
+
+			<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
+
+			<asp:Button id="Button1"runat="server" Text="Post"></asp:Button>
+			<br>
+			<asp:RequiredFieldValidator id="RequiredFieldValidator1" 
+				runat="server"
+				ErrorMessage="RequiredFieldValidator" 
+				Display="Dynamic" 
+				ControlToValidate="TextBox1">
+			</asp:RequiredFieldValidator>
+
+		</form>
+
+	</body>
+
+</HTML>


More information about the mono-bugs mailing list