[Mono-bugs] [Bug 71251][Nor] New - ASP.NET <asp:checkbox> Problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Jan 2005 18:46:51 -0500 (EST)


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 rlyon@novell.com.

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

--- shadow/71251	2005-01-13 18:46:51.000000000 -0500
+++ shadow/71251.tmp.28277	2005-01-13 18:46:51.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 71251
+Product: Mono: Tools
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: XSP
+AssignedTo: gonzalo@ximian.com                            
+ReportedBy: rlyon@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: ASP.NET <asp:checkbox> Problem
+
+Using the following <asp:checkbox> tag:
+
+<asp:checkbox id="chk3"
+	text="Click here too!"
+	align=right
+	onclick="javascript:alert('type: ' + this.type)"
+	runat="server"/>
+
+The following is geneterated with XSP:
+
+<span align="right" onclick="javascript:alert('type: ' + 
+this.type)"><input id="chk3" type="checkbox" name="chk3" /><label 
+for="chk3">Click here too!</label></span>
+
+The result should be:
+
+<span align="right"><input id="chk3" type="checkbox" name="chk3" 
+onclick="javascript:alert('type: ' + this.type)" /><label 
+for="chk3">Click here too!</label></span>
+
+The "onclick" attribute should be on the <input> tag and not the <span> 
+tag.  This creates a problem for the javascript "this.type".