Author: gonzalo
Date: 2005-04-21 04:39:59 -0400 (Thu, 21 Apr 2005)
New Revision: 43385

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/Page.cs
   trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs
Log:
2005-04-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * TemplateParser.cs: we still need LoadWithPartialName if Load fails.
        * Page.cs: ensure _requiresPostBack is emptied if we didn't have a copy
        for second postback.



Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-04-21 08:39:05 UTC 
(rev 43384)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-04-21 08:39:59 UTC 
(rev 43385)
@@ -1,3 +1,9 @@
+2005-04-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * TemplateParser.cs: we still need LoadWithPartialName if Load fails.
+       * Page.cs: ensure _requiresPostBack is emptied if we didn't have a copy
+       for second postback.
+
 2005-04-20  Rafael Teixeira <[EMAIL PROTECTED]>
        * TemplateParser.cs: Adding support for Strict/Explicit attributes 
        for @Page/@Control directives as documented at 

Modified: trunk/mcs/class/System.Web/System.Web.UI/Page.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Page.cs    2005-04-21 08:39:05 UTC 
(rev 43384)
+++ trunk/mcs/class/System.Web/System.Web.UI/Page.cs    2005-04-21 08:39:59 UTC 
(rev 43385)
@@ -803,8 +803,8 @@
                                        list1.Add (id);
                                }
                        }
-                       _requiresPostBack = list1;
                }
+               _requiresPostBack = list1;
        }
 
        [EditorBrowsable (EditorBrowsableState.Never)]

Modified: trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs  2005-04-21 
08:39:05 UTC (rev 43384)
+++ trunk/mcs/class/System.Web/System.Web.UI/TemplateParser.cs  2005-04-21 
08:39:59 UTC (rev 43385)
@@ -375,8 +375,14 @@
                                assembly = Assembly.Load (name);
                                string loc = assembly.Location;
                                fullpath = (Path.GetDirectoryName (loc) == 
PrivateBinPath);
-                       } catch (Exception e) {
-                               ThrowParseException ("Assembly " + name + " not 
found", e);
+                       } catch (Exception) {
+                               try {
+                                       assembly = Assembly.LoadWithPartialName 
(name);
+                                       string loc = assembly.Location;
+                                       fullpath = (Path.GetDirectoryName (loc) 
== PrivateBinPath);
+                               } catch (Exception e) {
+                                       ThrowParseException ("Assembly " + name 
+ " not found", e);
+                               }
                        }
 
                        AddAssembly (assembly, fullpath);

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

Reply via email to