Преглед изворни кода

2005-05-20 Gonzalo Paniagua Javier <[email protected]>

	* BaseDataList.cs: implemented 2.0 Caption property.


svn path=/trunk/mcs/; revision=44860
Gonzalo Paniagua Javier пре 20 година
родитељ
комит
42bb4033f6

+ 14 - 0
mcs/class/System.Web/System.Web.UI.WebControls/BaseDataList.cs

@@ -142,6 +142,20 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
+#if NET_2_0
+		[DefaultValue ("")]
+		[WebCategory ("Accessibility")]
+		[WebSysDescription ("Caption")]
+		public virtual string Caption {
+			get {
+				object o = ViewState ["Caption"];
+				return (o != null) ? (string) o : "";
+			}
+
+			set { ViewState ["Caption"] = value; }
+		}
+#endif
+
 #if NET_2_0
 	    [ThemeableAttribute (false)]
 #endif

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,7 @@
+2005-05-20 Gonzalo Paniagua Javier <[email protected]>
+
+	* BaseDataList.cs: implemented 2.0 Caption property.
+
 2005-05-18  Lluis Sanchez Gual <[email protected]>
 
 	* TreeView.cs: Always render the startup script. This fixes