Author: kostat
Date: 2006-04-25 03:59:11 -0400 (Tue, 25 Apr 2006)
New Revision: 59838

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
Log:
ensure the control is bound if ViewState is disabled

Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs    
    2006-04-25 07:49:23 UTC (rev 59837)
+++ 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataBoundControl.cs    
    2006-04-25 07:59:11 UTC (rev 59838)
@@ -137,6 +137,9 @@
                {
                        base.OnInit (e);
                        Page.PreLoad += new EventHandler (OnPagePreLoad);
+
+                       if (!IsViewStateEnabled && Page != null && 
Page.IsPostBack)
+                               RequiresDataBinding = true;
                }
                
                protected virtual void OnPagePreLoad (object sender, EventArgs 
e)

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-04-25 07:49:23 UTC (rev 59837)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-04-25 07:59:11 UTC (rev 59838)
@@ -1,3 +1,7 @@
+2006-04-25  Konstantin Triger  <[EMAIL PROTECTED]>
+
+       * BaseDataBoundControl.cs: ensure the control is bound if ViewState is 
disabled.
+
 2006-04-25 Konstantin Triger <[EMAIL PROTECTED]>
 
        * FormView.cs: fix FormView.PageCount after data binding.

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

Reply via email to