Author: gonzalo
Date: 2005-09-28 01:45:04 -0400 (Wed, 28 Sep 2005)
New Revision: 50924

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/Control.cs
Log:
2005-09-28 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Control.cs: fix HasChildViewStates.



Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-09-28 05:44:42 UTC 
(rev 50923)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-09-28 05:45:04 UTC 
(rev 50924)
@@ -1,3 +1,7 @@
+2005-09-28 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Control.cs: fix HasChildViewStates.
+
 2005-09-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * LosFormatter.cs: when the default ctor is used, MAC is disabled.

Modified: trunk/mcs/class/System.Web/System.Web.UI/Control.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Control.cs 2005-09-28 05:44:42 UTC 
(rev 50923)
+++ trunk/mcs/class/System.Web/System.Web.UI/Control.cs 2005-09-28 05:45:04 UTC 
(rev 50924)
@@ -91,7 +91,6 @@
                string uniqueID;
                string _userId;
                ControlCollection _controls;
-               IDictionary _childViewStates;
                Control _namingContainer;
                Page _page;
                Control _parent;
@@ -459,23 +458,18 @@
                                 return HttpContext.Current;
                         }
                 }
-                protected EventHandlerList Events //DIT
-                {
-                        get
-                        {
+
+                protected EventHandlerList Events {
+                        get {
                                 if (_events == null)
-                                {
-                                       _events = new EventHandlerList();
-                                }
+                                       _events = new EventHandlerList ();
                                 return _events;
                         }
                 }
-                protected bool HasChildViewState //DIT
-                {
-                        get
-                        {
-                                if (_childViewStates == null) return false;
-                                return true;
+
+                protected bool HasChildViewState {
+                        get {
+                               return (pendingVS != null && pendingVS.Count > 
0);
                         }
                 }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to