Author: igorz
Date: 2007-09-06 08:15:02 -0400 (Thu, 06 Sep 2007)
New Revision: 85409

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

        * DataBoundControl.cs: fixed DataBind flow:
        prevent double binding when not necessary.
        fixed bug #81146        



Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-09-06 12:13:08 UTC (rev 85408)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-09-06 12:15:02 UTC (rev 85409)
@@ -1,3 +1,9 @@
+2007-09-06 Igor Zelmanovich <[EMAIL PROTECTED]>
+
+       * DataBoundControl.cs: fixed DataBind flow:
+       prevent double binding when not necessary.
+       fixed bug #81146        
+
 2007-08-31  Marek Habersack  <[EMAIL PROTECTED]>
 
        * GridView.cs: instead of not adding hidden fields to the rows,

Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataBoundControl.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataBoundControl.cs    
2007-09-06 12:13:08 UTC (rev 85408)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataBoundControl.cs    
2007-09-06 12:15:02 UTC (rev 85409)
@@ -125,7 +125,7 @@
 
                private void Initialize ()
                {
-                       if (!Page.IsPostBack || (IsViewStateEnabled && 
!IsDataBound))
+                       if (!IsDataBound)
                                RequiresDataBinding = true;
 
                        UpdateViewData ();

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

Reply via email to