Przeglądaj źródła

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

	* Control.cs: use the _controls field instead of the Controls property.
	Fixes bug #76919.


svn path=/trunk/mcs/; revision=53954
Gonzalo Paniagua Javier 20 lat temu
rodzic
commit
1e872ff7f4

+ 5 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,8 @@
+2005-12-05 Gonzalo Paniagua Javier <[email protected]>
+
+	* Control.cs: use the _controls field instead of the Controls property.
+	Fixes bug #76919.
+
 2005-11-30  Sebastien Pouliot  <[email protected]>
 
 	* KeyedList.cs: Fixed for IOrderedDictionary change in 2.0 final.

+ 3 - 3
mcs/class/System.Web/System.Web.UI/Control.cs

@@ -924,10 +924,10 @@ namespace System.Web.UI
                 {
                         if (_renderMethodDelegate != null) {
                                 _renderMethodDelegate (writer, this);
-			} else if (HasControls ()) {
-				int len = Controls.Count;
+			} else if (_controls != null) {
+				int len = _controls.Count;
 				for (int i = 0; i < len; i++) {
-					Control c = Controls [i];
+					Control c = _controls [i];
 #if NET_2_0
 					if (c.Adapter != null)
 						c.RenderControl (writer, c.Adapter);