Selaa lähdekoodia

2008-09-25 Marek Habersack <[email protected]>

	* Page.cs: make sure view state is loaded for PreviousPage during
	cross-page postback.

svn path=/trunk/mcs/; revision=114033
Marek Habersack 17 vuotta sitten
vanhempi
sitoutus
ff5759d9db

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

@@ -1,3 +1,8 @@
+2008-09-25  Marek Habersack  <[email protected]>
+
+	* Page.cs: make sure view state is loaded for PreviousPage during
+	cross-page postback.
+
 2008-09-13  Atsushi Enomoto  <[email protected]>
 
 	* CssClassPropertyAttribute.cs : new in 3.5 SP1.

+ 5 - 1
mcs/class/System.Web/System.Web.UI/Page.cs

@@ -1914,7 +1914,11 @@ public partial class Page : TemplateControl, IHttpHandler
 	{
 		Pair sState = LoadPageStateFromPersistenceMedium () as Pair;
 		if (sState != null) {
-			if (allow_load) {
+			if (allow_load
+#if NET_2_0
+			    || isCrossPagePostBack
+#endif
+			) {
 #if NET_2_0
 				LoadPageControlState (sState.Second);
 #endif