Author: mhabersack
Date: 2007-06-01 10:10:46 -0400 (Fri, 01 Jun 2007)
New Revision: 78408

Modified:
   trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
   trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
Log:
2007-06-01  Marek Habersack  <[EMAIL PROTECTED]>

        * TemplateControlCompiler.cs: be case-insensitive when looking for
        Bind requests.



Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-06-01 
13:53:42 UTC (rev 78407)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-06-01 
14:10:46 UTC (rev 78408)
@@ -1,3 +1,8 @@
+2007-06-01  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * TemplateControlCompiler.cs: be case-insensitive when looking for
+       Bind requests.
+
 2007-05-29  Marek Habersack  <[EMAIL PROTECTED]>
 
        * ThemeDirectoryCompiler.cs: pass the skin file's

Modified: 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs    
    2007-06-01 13:53:42 UTC (rev 78407)
+++ 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs    
    2007-06-01 14:10:46 UTC (rev 78408)
@@ -64,7 +64,7 @@
                internal static CodeVariableReferenceExpression ctrlVar = new 
CodeVariableReferenceExpression ("__ctrl");
                
 #if NET_2_0
-               static Regex bindRegex = new Regex 
(@"Bind\s*\(""(.*?)""\)\s*%>", RegexOptions.Compiled);
+               static Regex bindRegex = new Regex 
(@"Bind\s*\(""(.*?)""\)\s*%>", RegexOptions.Compiled | RegexOptions.IgnoreCase);
 #endif
 
                public TemplateControlCompiler (TemplateControlParser parser)
@@ -415,7 +415,7 @@
 #if NET_2_0
                        bool need_if = false;
                        value = value.Trim ();
-                       if (StrUtils.StartsWith (value, "Bind")) {
+                       if (StrUtils.StartsWith (value, "Bind", true)) {
                                value = "Eval" + value.Substring (4);
                                need_if = true;
                        }
@@ -503,7 +503,7 @@
                {
                        string str = value.Trim ();
                        str = str.Substring (3).Trim ();        // eats "<%#"
-                       if (StrUtils.StartsWith (str, "Bind")) {
+                       if (StrUtils.StartsWith (str, "Bind", true)) {
                                Match match = bindRegex.Match (str);
                                if (match.Success) {
                                        string bindingName = match.Groups 
[1].Value;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to