Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs b/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
index 35fd1827e3c..76b50706cf5 100644
--- a/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
+++ b/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
@@ -338,9 +338,18 @@ namespace System.Web.UI.WebControls {
check_box.Text = item.Text;
check_box.AutoPostBack = AutoPostBack;
check_box.Checked = item.Selected;
- check_box.TextAlign = TextAlign;
- check_box.Enabled = Enabled;
+
+ if (!Enabled) {
+ check_box.Enabled = false;
+ writer.AddAttribute (HtmlTextWriterAttribute.Disabled, "disabled");
+ writer.RenderBeginTag (HtmlTextWriterTag.Span);
+ }
+
check_box.RenderControl (writer);
+
+ if (!Enabled) {
+ writer.RenderEndTag ();
+ }
}
void IRepeatInfoUser.RenderItem (ListItemType itemType,