[Mono-bugs] [Bug 76786][Wis] New - Incorrect asp:RadioButton render

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Nov 22 07:46:35 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 gianghu at gmail.com.

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

--- shadow/76786	2005-11-22 07:46:35.000000000 -0500
+++ shadow/76786.tmp.4724	2005-11-22 07:46:35.000000000 -0500
@@ -0,0 +1,99 @@
+Bug#: 76786
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Gentoo 2005.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: gianghu at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect asp:RadioButton render
+
+Description of Problem:
+Mono 1.1.10 did not render asp:RadioButton to html code as it should be.
+
+Steps to reproduce the problem:
+1. Install xsp demo (ex: localhost)
+2. Goto http://localhost/1.1/webcontrols/web_radiobutton.aspx
+3. View html source code
+
+Actual Results:
+<html>
+<head>
+<title>RadioButton</title>
+</head>
+<body>
+<form name="_ctl0" method="post" action="web_radiobutton.aspx" id="_ctl0">
+<input type="hidden" name="__VIEWSTATE"
+value="DAAOBQECcjEBAnIyAQJyMwECcjQBAnI1" />
+
+	<input id="r1" type="radio" name="r1" checked="checked" /><label
+for="r1">One</label>
+	<br>
+	<input id="r2" type="radio" name="r2" /><label for="r2">Two</label>
+
+	<br>
+	<input id="r3" type="radio" name="r3" /><label for="r3">Three</label>
+	<br>
+	Here another group of radio buttons.
+	<br>
+	<input id="r4" type="radio" name="r4" /><label for="r4">Ein</label>
+	<br>
+	<input id="r5" type="radio" name="r5" checked="checked" /><label
+for="r5">Zwei</label>
+
+	<br>
+</form>
+</body>
+</html>
+
+
+Expected Results:
+<html>
+<head>
+<title>RadioButton</title>
+</head>
+<body>
+<form name="_ctl0" method="post" action="web_radiobutton.aspx" id="_ctl0">
+<input type="hidden" name="__VIEWSTATE"
+value="DAAOBQECcjEBAnIyAQJyMwECcjQBAnI1" />
+
+	<input id="r1" type="radio" name="group1" checked="checked" /><label
+for="r1">One</label>
+	<br>
+	<input id="r2" type="radio" name="group1" /><label for="r2">Two</label>
+
+	<br>
+	<input id="r3" type="radio" name="group1" /><label for="r3">Three</label>
+	<br>
+	Here another group of radio buttons.
+	<br>
+	<input id="r4" type="radio" name="group2" /><label for="r4">Ein</label>
+	<br>
+	<input id="r5" type="radio" name="group2" checked="checked" /><label
+for="r5">Zwei</label>
+
+	<br>
+</form>
+</body>
+</html>
+
+How often does this happen? Always
+
+
+Additional Information:
+ May be its due to CheckBox render name attribute using UniqueID instead of
+NameAttribute. (Dont hurt me if I am wrong, just a thought :D)
+
+ + In mono-1.1.9.2: CheckBox.cs:6929
+      w.AddAttribute (HtmlTextWriterAttribute.Name,
+                         NameAttribute);
+ + In mono-1.1.9.2: CheckBox.cs:8751, CheckBox.cs:10243
+      w.AddAttribute (HtmlTextWriterAttribute.Name, UniqueID);


More information about the mono-bugs mailing list