Author: mhabersack
Date: 2007-04-26 05:35:59 -0400 (Thu, 26 Apr 2007)
New Revision: 76303
Modified:
branches/mono-1-2-4/mcs/class/System.Web/System.Web.Compilation/ChangeLog
branches/mono-1-2-4/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:
branches/mono-1-2-4/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- branches/mono-1-2-4/mcs/class/System.Web/System.Web.Compilation/ChangeLog
2007-04-26 09:34:56 UTC (rev 76302)
+++ branches/mono-1-2-4/mcs/class/System.Web/System.Web.Compilation/ChangeLog
2007-04-26 09:35:59 UTC (rev 76303)
@@ -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-19 Gert Driesen <[EMAIL PROTECTED]>
* AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
Modified:
branches/mono-1-2-4/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
===================================================================
---
branches/mono-1-2-4/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
2007-04-26 09:34:56 UTC (rev 76302)
+++
branches/mono-1-2-4/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
2007-04-26 09:35:59 UTC (rev 76303)
@@ -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