Author: gonzalo
Date: 2006-09-18 17:42:21 -0400 (Mon, 18 Sep 2006)
New Revision: 65610
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI/PageParser.cs
Log:
2006-09-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* System.Web.UI/PageParser.cs:
* System.Web.Compilation/PageCompiler.cs: support the
EnableEventValidation attribute.
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-09-18
21:39:23 UTC (rev 65609)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-09-18
21:42:21 UTC (rev 65610)
@@ -1,3 +1,7 @@
+2006-09-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * PageCompiler.cs: support the EnableEventValidation attribute.
+
2006-09-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* AspGenerator.cs: after parsing an include file, don't error out if we
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
2006-09-18 21:39:23 UTC (rev 65609)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs
2006-09-18 21:42:21 UTC (rev 65610)
@@ -195,6 +195,16 @@
method.Statements.Add (expr);
}
#endif
+#if NET_2_0
+ if (!pageParser.EnableEventValidation) {
+ CodeAssignStatement stmt = new
CodeAssignStatement ();
+ CodePropertyReferenceExpression prop;
+ prop = new CodePropertyReferenceExpression
(thisRef, "EnableEventValidation");
+ stmt.Left = prop;
+ stmt.Right = new CodePrimitiveExpression
(pageParser.EnableEventValidation);
+ method.Statements.Add (stmt);
+ }
+#endif
base.AppendStatementsToFrameworkInitialize (method);
}
Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2006-09-18 21:39:23 UTC
(rev 65609)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2006-09-18 21:42:21 UTC
(rev 65610)
@@ -1,3 +1,7 @@
+2006-09-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * PageParser.cs: support the EnableEventValidation attribute.
+
2006-09-18 Igor Zelmanovich <[EMAIL PROTECTED]>
* Page.cs: fixed: Title property works properly
Modified: trunk/mcs/class/System.Web/System.Web.UI/PageParser.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/PageParser.cs 2006-09-18
21:39:23 UTC (rev 65609)
+++ trunk/mcs/class/System.Web/System.Web.UI/PageParser.cs 2006-09-18
21:42:21 UTC (rev 65610)
@@ -66,6 +66,7 @@
string title;
string theme;
string styleSheetTheme;
+ bool enable_event_validation;
#endif
public PageParser ()
@@ -286,6 +287,7 @@
theme = GetString (atts, "Theme", null);
styleSheetTheme = GetString (atts, "StyleSheetTheme",
null);
+ enable_event_validation = GetBool (atts,
"EnableEventValidation", true);
#endif
// Ignored by now
GetString (atts, "EnableViewStateMac", null);
@@ -425,6 +427,10 @@
internal string Title {
get { return title; }
}
+
+ internal bool EnableEventValidation {
+ get { return enable_event_validation; }
+ }
#endif
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches