Author: mhabersack
Date: 2007-04-26 05:28:04 -0400 (Thu, 26 Apr 2007)
New Revision: 76301
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
Log:
2007-04-26 Marek Habersack <[EMAIL PROTECTED]>
* PageCompiler.cs: the Master property must be in the partial
class if present. Fixes bug #81442
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-04-26
08:59:00 UTC (rev 76300)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-04-26
09:28:04 UTC (rev 76301)
@@ -1,3 +1,8 @@
+2007-04-26 Marek Habersack <[EMAIL PROTECTED]>
+
+ * PageCompiler.cs: the Master property must be in the partial
+ class if present. Fixes bug #81442
+
2007-04-20 Marek Habersack <[EMAIL PROTECTED]>
* AppCodeCompiler.cs: fix App_Code build when the directory
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
2007-04-26 08:59:00 UTC (rev 76300)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
2007-04-26 09:28:04 UTC (rev 76301)
@@ -269,7 +269,11 @@
CodeExpression prop = new
CodePropertyReferenceExpression (new CodeBaseReferenceExpression (), "Master");
prop = new CodeCastExpression
(pageParser.MasterType, prop);
mprop.GetStatements.Add (new
CodeMethodReturnStatement (prop));
- mainClass.Members.Add (mprop);
+
+ if (partialClass != null)
+ partialClass.Members.Add (mprop);
+ else
+ mainClass.Members.Add (mprop);
}
#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches