+2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * CheckBox.cs: add possible 'internal' attributes to the input tag. Fix
+ the 'name' attribute when not aligninng to the right.
+ * RadioButton.cs: use NameAttribute instead of GroupName when indexing
+ the collection. Raise the OnCheckedChanged event. Fixes bug #76710.
+
2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* DataGrid.cs: clear the control collection on every call to
w.AddAttribute (HtmlTextWriterAttribute.Id, ClientID);
w.AddAttribute (HtmlTextWriterAttribute.Type, render_type);
w.AddAttribute (HtmlTextWriterAttribute.Name, NameAttribute);
+ InternalAddAttributesToRender (w);
if (Checked)
w.AddAttribute (HtmlTextWriterAttribute.Checked, "checked");
w.AddAttribute (HtmlTextWriterAttribute.Id, ClientID);
w.AddAttribute (HtmlTextWriterAttribute.Type, render_type);
- w.AddAttribute (HtmlTextWriterAttribute.Name, UniqueID);
+ w.AddAttribute (HtmlTextWriterAttribute.Name, NameAttribute);
+ InternalAddAttributesToRender (w);
if (Checked)
w.AddAttribute (HtmlTextWriterAttribute.Checked, "checked");
internal virtual void InternalAddAttributesToRender (HtmlTextWriter w)
{
- AddAttributesToRender (w);
}
}
}
{
bool old_checked = Checked;
- if (postCollection[GroupName] == postDataKey) {
+ if (postCollection[NameAttribute] == postDataKey) {
Checked = true;
} else {
Checked = false;
#endif
void RaisePostDataChangedEvent ()
{
+ OnCheckedChanged (EventArgs.Empty);
}
bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)