Permalink
Browse files

2006-10-12 Igor Zelmanovich <igorz@mainsoft.com>

	* Page.cs: fixed: for 2.0 only
	When Page processes Callback IsPostBack = false, but it still needs
	LoadViewState/ControlState and ProcessPostData


svn path=/trunk/mcs/; revision=66600
  • Loading branch information...
1 parent bc2cbd1 commit cb81f25bacaf41189c2ae73ac8e1a63bd205250d Igor Zelmanovich committed Oct 12, 2006
Showing with 14 additions and 0 deletions.
  1. +6 −0 mcs/class/System.Web/System.Web.UI/ChangeLog
  2. +8 −0 mcs/class/System.Web/System.Web.UI/Page.cs
@@ -1,3 +1,9 @@
+2006-10-12 Igor Zelmanovich <igorz@mainsoft.com>
+
+ * Page.cs: fixed: for 2.0 only
+ When Page processes Callback IsPostBack = false, but it still needs
+ LoadViewState/ControlState and ProcessPostData
+
2006-10-11 Igor Zelmanovich <igorz@mainsoft.com>
* DataSourceSelectArguments.cs: fixed:
@@ -1145,7 +1145,11 @@ void InternalProcessRequest ()
#endif
renderingForm = false;
+#if NET_2_0
+ if (IsPostBack || IsCallback) {
+#else
if (IsPostBack) {
+#endif
Trace.Write ("aspx.page", "Begin LoadViewState");
LoadPageViewState ();
Trace.Write ("aspx.page", "End LoadViewState");
@@ -1159,7 +1163,11 @@ void InternalProcessRequest ()
#endif
LoadRecursive ();
+#if NET_2_0
+ if (IsPostBack || IsCallback) {
+#else
if (IsPostBack) {
+#endif
Trace.Write ("aspx.page", "Begin ProcessPostData Second Try");
ProcessPostData (secondPostData, true);
Trace.Write ("aspx.page", "End ProcessPostData Second Try");

0 comments on commit cb81f25

Please sign in to comment.