Author: gonzalo
Date: 2006-07-19 21:21:28 -0400 (Wed, 19 Jul 2006)
New Revision: 62784
Modified:
trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI/Page.cs
Log:
2006-07-20 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* Page.cs: when ProcessRequest is not called, get the session from
the current context. Fixes bug #78730.
Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2006-07-20 01:15:41 UTC
(rev 62783)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2006-07-20 01:21:28 UTC
(rev 62784)
@@ -1,5 +1,10 @@
2006-07-20 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+ * Page.cs: when ProcessRequest is not called, get the session from
+ the current context. Fixes bug #78730.
+
+2006-07-20 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
* Page.cs: fix IsPostback for AJAX calls to match MS behavior. Patch
by Peijen Lin that closes bug #78646.
Modified: trunk/mcs/class/System.Web/System.Web.UI/Page.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Page.cs 2006-07-20 01:15:41 UTC
(rev 62783)
+++ trunk/mcs/class/System.Web/System.Web.UI/Page.cs 2006-07-20 01:21:28 UTC
(rev 62784)
@@ -443,6 +443,9 @@
{
get {
if (_context == null)
+ _context = HttpContext.Current;
+
+ if (_context == null)
throw new HttpException ("Session is not
available without context");
if (_context.Session == null)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches