Implement accessibility features for NET_1_1 configuration.
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / DataList.cs
index c0c3e8fb15a1138e773c88039f313cd007716f67..38cfcf8f19f94dce84c7d105dacd7d36b1793db9 100644 (file)
@@ -744,11 +744,20 @@ namespace System.Web.UI.WebControls
                                templateTable.ID = ClientID;
                                templateTable.CopyBaseAttributes (this);
                                templateTable.ApplyStyle (ControlStyle);
+#if NET_1_1
+                               templateTable.CaptionAlign = CaptionAlign;
+                               templateTable.Caption = Caption;
+#endif
                                templateTable.RenderBeginTag (writer);
                        } else {
                                repeater.RepeatDirection = RepeatDirection;
                                repeater.RepeatLayout = RepeatLayout;
                                repeater.RepeatColumns = RepeatColumns;
+#if NET_1_1
+                               repeater.CaptionAlign = CaptionAlign;
+                               repeater.Caption = Caption;
+                               repeater.UseAccessibleHeader = UseAccessibleHeader;
+#endif
                        }
 
                        repeater.RenderRepeater (writer, this, ControlStyle, this);