Author: mhabersack
Date: 2007-03-26 08:47:27 -0500 (Mon, 26 Mar 2007)
New Revision: 74980

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

        Use GetExpressionFromString to generate a correct expression for
        custom page/control attributes. Fixes bug #81132.


Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-03-26 
13:26:43 UTC (rev 74979)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-03-26 
13:47:27 UTC (rev 74980)
@@ -6,6 +6,8 @@
        Process meta:resourcekey after all the field/attribute assignments
        are done. Fixes bug #80809.
        Clean the code up a bit.
+       Use GetExpressionFromString to generate a correct expression for
+       custom page/control attributes. Fixes bug #81132.
 
 2007-03-21  Marek Habersack  <[EMAIL PROTECTED]>
 

Modified: 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs    
    2007-03-26 13:26:43 UTC (rev 74979)
+++ 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs    
    2007-03-26 13:47:27 UTC (rev 74980)
@@ -359,7 +359,7 @@
                        assign.Left = new CodePropertyReferenceExpression (
                                new CodeArgumentReferenceExpression("__ctrl"),
                                uad.Info.Name);
-                       assign.Right = new CodePrimitiveExpression (uad.Value);
+                       assign.Right = GetExpressionFromString 
(uad.Value.GetType (), uad.Value.ToString (), uad.Info);
                        
                        method.Statements.Add (assign);
                }

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

Reply via email to