Author: igorz
Date: 2007-07-04 07:38:14 -0400 (Wed, 04 Jul 2007)
New Revision: 81327
Modified:
trunk/mcs/class/System.Web.Extensions/System.Web.UI/AsyncPostBackTrigger.cs
Log:
refactoring: make it works for TARGET_J2EE
Modified:
trunk/mcs/class/System.Web.Extensions/System.Web.UI/AsyncPostBackTrigger.cs
===================================================================
--- trunk/mcs/class/System.Web.Extensions/System.Web.UI/AsyncPostBackTrigger.cs
2007-07-04 10:30:47 UTC (rev 81326)
+++ trunk/mcs/class/System.Web.Extensions/System.Web.UI/AsyncPostBackTrigger.cs
2007-07-04 11:38:14 UTC (rev 81327)
@@ -83,13 +83,16 @@
if (evi == null)
throw new InvalidOperationException
(String.Format ("Could not find an event named '{0}' on associated control
'{1}' for the trigger in UpdatePanel '{2}'.", eventName, c.ID, Owner.ID));
+ Delegate d = null;
try {
- evi.AddEventHandler (c, Delegate.CreateDelegate
(evi.EventHandlerType, this, _eventHandler, true));
+ d = Delegate.CreateDelegate
(evi.EventHandlerType, this, _eventHandler);
}
catch (ArgumentException) {
throw new InvalidOperationException
(String.Format ("The event '{0}' in '{1}' for the control '{2}' does not match
a standard event handler signature.", eventName, c.GetType (), c.ID));
}
+ evi.AddEventHandler (c, d);
+
sm.RegisterAsyncPostBackControl (c);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches