Skip to content

Commit

Permalink
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Browse files Browse the repository at this point in the history
	* HtmlInputRadioButton.cs: Value returns the ID only when there's no
	"value" set. Fixes bug #78101.


svn path=/branches/mono-1-1-13/mcs/; revision=59772
  • Loading branch information
gonzalop committed Apr 21, 2006
1 parent d573fd2 commit 6a795f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HtmlInputRadioButton.cs: Value returns the ID only when there's no
"value" set. Fixes bug #78101.

2006-03-19 Vladimir Krasnov <vladimirk@mainsoft.com>

* HtmlAnchor.cs: fixed RenderAttributes, if target attribute is empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public override string Name {
public override string Value {
get {
string s = Attributes ["value"];
if (s == null) {
if (s == null || s.Length == 0) {
s = ID;
if ((s != null) && (s.Length == 0))
s = null;
Expand Down Expand Up @@ -120,7 +120,8 @@ protected virtual void OnServerChange (EventArgs e)

protected override void RenderAttributes (HtmlTextWriter writer)
{
writer.WriteAttribute ("value", ID);
writer.WriteAttribute ("value", Value);
Attributes.Remove ("value");
base.RenderAttributes (writer);
}
#if NET_2_0
Expand Down

0 comments on commit 6a795f3

Please sign in to comment.