[Mono-bugs] [Bug 76641][Nor] New - BaseValidator does not render client side control name when controls are nested

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 7 12:46:23 EST 2005


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 ian.dunkerly at immediacy.co.uk.

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

--- shadow/76641	2005-11-07 12:46:23.000000000 -0500
+++ shadow/76641.tmp.23380	2005-11-07 12:46:23.000000000 -0500
@@ -0,0 +1,41 @@
+Bug#: 76641
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: RedHat Enterprise 4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: ian.dunkerly at immediacy.co.uk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: BaseValidator does not render client side control name when controls are nested
+
+Description of Problem:
+
+Validator controls when nested in named controls incorrectly render the 
+client side ControlToRender properties.
+
+Page Control Setup:
+
+<page>
+  <usercontrol>
+    <validator ControlToValidate="tb" />
+    <textbox id="tb" />
+  </usercontrol>
+</page>
+
+When using a page hierarchy such as this the validator control renders 
+ControlToValidate="tb" to the client when it should render "_ctl0_tb".
+
+The textbox correctly render it's ClientID as "_ctl0_tb".
+
+The BaseValidatorControls "AddAttributesToRender" method uses the value 
+of "ControlToValidate" to render the value. It should use the ClientID 
+property of the control indicated by ControlToValidate - i.e. FindControl
+(ControlToValidate).ClientID


More information about the mono-bugs mailing list