Author: mhabersack
Date: 2007-09-18 07:44:52 -0400 (Tue, 18 Sep 2007)
New Revision: 85964
Modified:
trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs
Log:
2007-09-18 Marek Habersack <[EMAIL PROTECTED]>
* TemplateParser.cs: VaryByControl OutputCache attribute is
allowed for both controls and pages in 2.0.
Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2007-09-18 11:42:11 UTC
(rev 85963)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2007-09-18 11:44:52 UTC
(rev 85964)
@@ -1,3 +1,8 @@
+2007-09-18 Marek Habersack <[EMAIL PROTECTED]>
+
+ * TemplateParser.cs: VaryByControl OutputCache attribute is
+ allowed for both controls and pages in 2.0.
+
2007-09-11 Marek Habersack <[EMAIL PROTECTED]>
* WebServiceParser.cs: inputFile is a virtual path to the service,
Modified: trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs 2007-09-18
11:42:11 UTC (rev 85963)
+++ trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs 2007-09-18
11:44:52 UTC (rev 85964)
@@ -292,9 +292,9 @@
if (atts ["Duration"] == null)
ThrowParseException ("The directive is
missing a 'duration' attribute.");
- if (atts ["VaryByParam"] == null)
- ThrowParseException ("This directive is
missing a 'VaryByParam' " +
- "attribute, which
should be set to \"none\", \"*\", " +
+ if (atts ["VaryByParam"] == null && atts
["VaryByControl"] == null)
+ ThrowParseException ("This directive is
missing 'VaryByParam' " +
+ "or 'VaryByControl'
attribute, which should be set to \"none\", \"*\", " +
"or a list of
name/value pairs.");
foreach (DictionaryEntry entry in atts) {
@@ -320,7 +320,7 @@
case "location":
if (!(this is PageParser))
goto default;
-
+
try {
oc_location =
(OutputCacheLocation) Enum.Parse (
typeof
(OutputCacheLocation), (string) entry.Value, true);
@@ -331,9 +331,10 @@
}
break;
case "varybycontrol":
+#if ONLY_1_1
if (this is PageParser)
goto default;
-
+#endif
oc_controls = (string)
entry.Value;
break;
case "shared":
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches