Selaa lähdekoodia

2007-01-31 Igor Zelmanovich <[email protected]>

	* CheckBoxList.cs:
	* DropDownList.cs:
	* ListBox.cs:
	* RadioButtonList.cs:
	EnsureDataBound is called when PostData is processed to restore 
	'state' of control if EnableViewState is false				 

svn path=/trunk/mcs/; revision=72025
Igor Zelmanovich 19 vuotta sitten
vanhempi
sitoutus
c20d29ca50

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

@@ -1,3 +1,12 @@
+2007-01-31 Igor Zelmanovich <[email protected]>
+
+	* CheckBoxList.cs:
+	* DropDownList.cs:
+	* ListBox.cs:
+	* RadioButtonList.cs:
+	EnsureDataBound is called when PostData is processed to restore 
+	'state' of control if EnableViewState is false				 
+
 2007-01-31 Igor Zelmanovich <[email protected]>
 
 	* GridView.cs: fixed: 

+ 3 - 0
mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs

@@ -208,6 +208,9 @@ namespace System.Web.UI.WebControls {
 #endif
 		bool LoadPostData (string postDataKey, NameValueCollection postCollection)
 		{
+#if NET_2_0
+			EnsureDataBound ();
+#endif
 			int checkbox = -1;
 
 			try {

+ 3 - 0
mcs/class/System.Web/System.Web.UI.WebControls/DropDownList.cs

@@ -210,6 +210,9 @@ namespace System.Web.UI.WebControls {
 #endif
 		bool LoadPostData (string postDataKey, NameValueCollection postCollection)
 		{
+#if NET_2_0
+			EnsureDataBound ();
+#endif
 			int	index;
 
 			index = Items.IndexOf(postCollection[postDataKey]);

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ListBox.cs

@@ -212,6 +212,9 @@ namespace System.Web.UI.WebControls {
 #endif
 		bool LoadPostData (string postDataKey, NameValueCollection postCollection)
 		{
+#if NET_2_0
+			EnsureDataBound ();
+#endif
 			string [] values = postCollection.GetValues (postDataKey);
 			if (values == null || values.Length == 0) {
 				int prev_index = SelectedIndex;
@@ -296,3 +299,4 @@ namespace System.Web.UI.WebControls {
 }
 
 
+

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs

@@ -266,6 +266,9 @@ namespace System.Web.UI.WebControls {
 #endif
 		bool LoadPostData (string postDataKey, NameValueCollection postCollection)
 		{
+#if NET_2_0
+			EnsureDataBound ();
+#endif
 			string val = postCollection [postDataKey];
 			ListItemCollection items = Items;
 			int end = items.Count;
@@ -359,3 +362,4 @@ namespace System.Web.UI.WebControls {
 
 
 
+