2008-09-04 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.UI / PageParser.cs
index aa9705c05ab6a30a12f9508b6751b991c83113a2..e2ea3a0ae141c50921d8b1a7f405d078265ab6d6 100644 (file)
@@ -59,7 +59,6 @@ namespace System.Web.UI
                string errorPage;
                bool validateRequest;
                string clientTarget;
-               Type baseType = typeof (Page);
 
 #if NET_2_0
                bool async;
@@ -89,6 +88,9 @@ namespace System.Web.UI
                        SetBaseType (null);
                        AddApplicationAssembly ();
                        LoadConfigDefaults ();
+#if NET_2_0
+                       this.VirtualPath = new VirtualPath (virtualPath);
+#endif
                }
 
 #if NET_2_0
@@ -111,6 +113,9 @@ namespace System.Web.UI
                        SetBaseType (null);
                        AddApplicationAssembly ();
                        LoadConfigDefaults ();
+#if NET_2_0
+                       this.VirtualPath = new VirtualPath (virtualPath);
+#endif
                }
 #endif
 
@@ -373,7 +378,7 @@ namespace System.Web.UI
 
                        theme = GetString (atts, "Theme", theme);
                        styleSheetTheme = GetString (atts, "StyleSheetTheme", styleSheetTheme);
-                       enable_event_validation = GetBool (atts, "EnableEventValidation", true);
+                       enable_event_validation = GetBool (atts, "EnableEventValidation", enable_event_validation);
                        maintainScrollPositionOnPostBack = GetBool (atts, "MaintainScrollPositionOnPostBack", maintainScrollPositionOnPostBack);
 #endif
                        // Ignored by now