Author: mhabersack
Date: 2007-10-01 14:31:24 -0400 (Mon, 01 Oct 2007)
New Revision: 86718
Modified:
trunk/mcs/class/System.Web/System.Web.UI/Page.cs
Log:
This is more elegant (thanks JB :))
Modified: trunk/mcs/class/System.Web/System.Web.UI/Page.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Page.cs 2007-10-01 18:28:08 UTC
(rev 86717)
+++ trunk/mcs/class/System.Web/System.Web.UI/Page.cs 2007-10-01 18:31:24 UTC
(rev 86718)
@@ -1298,10 +1298,7 @@
isCallback = _requestValueCollection
[CallbackArgumentID] != null;
// LAMESPEC: on Callback IsPostBack is set to
false, but true.
//isPostBack = !isCallback;
- if (ctx.InTransit)
- isPostBack = false;
- else
- isPostBack = true;
+ isPostBack = !ctx.InTransit;
}
string lastFocus = _requestValueCollection
[LastFocusID];
if (!String.IsNullOrEmpty (lastFocus)) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches