Przeglądaj źródła

2008-02-18 Marek Habersack <[email protected]>

	* FormView.cs: the ItemCreated must be fired before data is bound
	to the FormView. Fixes bug #360434

svn path=/trunk/mcs/; revision=96093
Marek Habersack 18 lat temu
rodzic
commit
cd08e57dea

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,8 @@
+2008-02-18  Marek Habersack  <[email protected]>
+
+	* FormView.cs: the ItemCreated must be fired before data is bound
+	to the FormView. Fixes bug #360434
+
 2008-02-07 Igor Zelmanovich <[email protected]>
 
 	* Login.cs: render id attribute of root element correctly.

+ 2 - 2
mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs

@@ -987,10 +987,10 @@ namespace System.Web.UI.WebControls
 				table.Rows.Add (bottomPagerRow);
 			}
 
+			OnItemCreated (EventArgs.Empty);
+			
 			if (dataBinding)
 				DataBind (false);
-			
-			OnItemCreated (EventArgs.Empty);
 
 			return PageCount;
 		}