Author: igorz
Date: 2007-01-01 11:13:44 -0500 (Mon, 01 Jan 2007)
New Revision: 70319

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompositeDataBoundControl.cs
Log:
2007-01-01 Igor Zelmanovich <[EMAIL PROTECTED]>

        * BaseDataBoundControl.cs:
        * CompositeDataBoundControl.cs: fixed DataBinding flow.


Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs    
    2007-01-01 15:53:21 UTC (rev 70318)
+++ 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs    
    2007-01-01 16:13:44 UTC (rev 70319)
@@ -128,7 +128,8 @@
 
                protected virtual void OnDataPropertyChanged ()
                {
-                       RequiresDataBinding = true;
+                       if (Initialized)
+                               RequiresDataBinding = true;
                }
                
                protected internal override void OnInit (EventArgs e)

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-01-01 15:53:21 UTC (rev 70318)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-01-01 16:13:44 UTC (rev 70319)
@@ -1,3 +1,8 @@
+2007-01-01 Igor Zelmanovich <[EMAIL PROTECTED]>
+
+       * BaseDataBoundControl.cs:
+       * CompositeDataBoundControl.cs: fixed DataBinding flow.
+
 2006-12-31 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * LinkButton.cs: show the validation summary when client validation

Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompositeDataBoundControl.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompositeDataBoundControl.cs
   2007-01-01 15:53:21 UTC (rev 70318)
+++ 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompositeDataBoundControl.cs
   2007-01-01 16:13:44 UTC (rev 70319)
@@ -55,7 +55,6 @@
 
                        object itemCount = ViewState ["_ItemCount"];
                        if (itemCount != null) {
-                               RequiresDataBinding = false;
                                object [] data = new object [(int) itemCount];
                                ViewState ["_ItemCount"] = CreateChildControls 
(data, false);
                        }

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

Reply via email to