Merge pull request #853 from echampet/onclick
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / CheckBox.cs
index e57c5969d32775776adb2991644719751080dddc..27c3a7fb9dc870f7018c9a6956ef0871173ecb54 100644 (file)
@@ -315,11 +315,9 @@ namespace System.Web.UI.WebControls
                        bool need_span = ControlStyleCreated && !ControlStyle.IsEmpty;
                        bool enabled = IsEnabled;
                        if (!enabled) {
-#if NET_4_0
                                if (!RenderingCompatibilityLessThan40)
                                        ControlStyle.PrependCssClass (DisabledCssClass);
                                else
-#endif
                                        w.AddAttribute (HtmlTextWriterAttribute.Disabled, "disabled", false);
                                need_span = true;
                        }