2008-01-02 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Compilation / GlobalAsaxCompiler.cs
index 0c70ce86c7f9b909dc2f5633ef448ba3997d54cc..9064cf6a66354fa55e442d9a6401e44f4b5666a4 100644 (file)
@@ -30,6 +30,7 @@
 //
 using System;
 using System.Collections;
+using System.Globalization;
 using System.Web.UI;
 
 namespace System.Web.Compilation
@@ -54,10 +55,13 @@ namespace System.Web.Compilation
                        return generator.GetCompiledType ();
                }
 
-               protected override void CreateMethods ()
+               protected internal override void CreateMethods ()
                {
                        base.CreateMethods ();
-
+#if NET_2_0
+                       CreateProfileProperty ();
+#endif
+                       
                        ProcessObjects (parser.RootBuilder);
                }
 
@@ -77,11 +81,11 @@ namespace System.Web.Compilation
                                        continue;
                                }
                                
-                               if (tag.Scope == "session") {
+                               if (String.Compare (tag.Scope, "session", true, CultureInfo.InvariantCulture) == 0) {
                                        sessionObjectTags.Add (tag);
                                        CreateApplicationOrSessionPropertyForObject (tag.Type, tag.ObjectID,
                                                                                     false, false);
-                               } else if (tag.Scope == "application") {
+                               } else if (String.Compare (tag.Scope, "application", true, CultureInfo.InvariantCulture) == 0) {
                                        applicationObjectTags.Add (tag);
                                        CreateFieldForObject (tag.Type, tag.ObjectID);
                                        CreateApplicationOrSessionPropertyForObject (tag.Type, tag.ObjectID,