[Mono-bugs] [Bug 76706][Nor] Changed - RadioButtonList SelectedValue property returns empty string

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Nov 29 06:01:37 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.


--- shadow/76706	2005-11-28 19:05:05.000000000 -0500
+++ shadow/76706.tmp.30697	2005-11-29 06:01:37.000000000 -0500
@@ -89,6 +89,37 @@
 ------- Additional Comments From gonzalo at ximian.com  2005-11-28 19:05 -------
 Giang, the last patch does not even compile after applied and I'm
 confused about the purpose or the validity of the other 2. Can you
+------- Additional Comments From gianghu at gmail.com  2005-11-29 06:01 -------
+1. My patch was applied successfully to mono-1.1.10, its depended on
+previous patch. My purpose is create Value attribute for CheckBox and
+RadioButton (refer to:
+http://www.w3.org/TR/REC-html40/interact/forms.html). (It's just a
+work around, you may have a better solution :D)
+I found two other issues with r53381:
+a. At RadioButton:73, NameAttribute may not unique in some
+circumstances. Imagine:
+ - You have a custom control (myctrl) which included radio buttons
+(group: grp)
+ - You create another custom control (ctrl) which include two myctrls
+(myctrl1, myctrl2).  code for radio button is:
+   <input type="radio" name="ctrl:grp">
+ when it should be:
+   <input type="radio" name="ctrl:ctrl1:grp">
+In my opinion (RadioButton.cs:73) should be:
+   colon = unique.LastIndexOf(':');
+b. in LoadPostData function.
+  if (postCollection[GroupName] == postDataKey) always return false
+when RadioButton was embedded in user custom control (cause of
+GroupName differ from NameAttribute RadioButton.cs:103).
+  Should be: if (postCollection[NameAttribute] == postDataKey)???
+Giang Hu.

More information about the mono-bugs mailing list