"CompilerOptions", "ContentType", "Culture", "Debug",
"Description",
#if NET_2_0
- "EnableEventValidation",
+ "EnableEventValidation", "MaintainScrollPositionOnPostBack",
#endif
"EnableSessionState", "EnableViewState",
"EnableViewStateMac", "ErrorPage", "Explicit",
static string [] control_atts = { "AutoEventWireup", "ClassName", "CompilerOptions",
"Debug", "Description", "EnableViewState",
"Explicit", "Inherits", "Language", "Strict", "Src",
- "WarningLevel", "CodeBehind", "TargetSchema" };
+ "WarningLevel", "CodeBehind", "TargetSchema", "LinePragmas" };
static string [] import_atts = { "namespace" };
static string [] implements_atts = { "interface" };
#if NET_2_0
static string [] mastertype_atts = { "virtualpath", "typename" };
+ static string [] previouspagetype_atts = { "virtualpath", "typename" };
#endif
static Directive ()
InitHash ();
}
- private static void InitHash ()
+ static void InitHash ()
{
#if NET_2_0
StringComparer comparer = StringComparer.InvariantCultureIgnoreCase;
valid_attributes = new Hashtable (comparer);
foreach (string att in control_atts) valid_attributes.Add (att, null);
directivesHash.Add ("MASTER", valid_attributes);
+
+ valid_attributes = new Hashtable (comparer);
+ foreach (string att in previouspagetype_atts) valid_attributes.Add (att, null);
+ directivesHash.Add ("PREVIOUSPAGETYPE", valid_attributes);
#endif
}
- private Directive () { }
+ Directive () { }
public static bool IsDirective (string id)
{