Author: kostat
Date: 2006-07-06 10:48:08 -0400 (Thu, 06 Jul 2006)
New Revision: 62317

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs
   
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DataControlFieldTest.cs
Log:
ensure the container for the style exists

Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs    
2006-07-06 14:27:38 UTC (rev 62316)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs    
2006-07-06 14:48:08 UTC (rev 62317)
@@ -140,13 +140,13 @@
                        viewState.LoadViewState (states[0]);
                        
                        if (states[1] != null)
-                               ((IStateManager)controlStyle).LoadViewState 
(states[1]);
+                               ((IStateManager)ControlStyle).LoadViewState 
(states[1]);
                        if (states[2] != null)
-                               ((IStateManager)footerStyle).LoadViewState 
(states[2]);
+                               ((IStateManager)FooterStyle).LoadViewState 
(states[2]);
                        if (states[3] != null)
-                               ((IStateManager)headerStyle).LoadViewState 
(states[3]);
+                               ((IStateManager)HeaderStyle).LoadViewState 
(states[3]);
                        if (states[4] != null)
-                               ((IStateManager)itemStyle).LoadViewState 
(states[4]);
+                               ((IStateManager)ItemStyle).LoadViewState 
(states[4]);
                }
 
                protected virtual object SaveViewState()

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DataControlFieldTest.cs
===================================================================
--- 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DataControlFieldTest.cs
   2006-07-06 14:27:38 UTC (rev 62316)
+++ 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DataControlFieldTest.cs
   2006-07-06 14:48:08 UTC (rev 62317)
@@ -229,7 +229,6 @@
                }
 
                [Test]
-               [Category ("NotWorking")]
                public void DataControlField_ViewState ()
                {
                        DerivedDataControlField field = new 
DerivedDataControlField ();
@@ -255,4 +254,4 @@
                }
        }
 }
-#endif
\ No newline at end of file
+#endif

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

Reply via email to