Author: mhabersack
Date: 2006-11-17 18:55:31 -0500 (Fri, 17 Nov 2006)
New Revision: 68115

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
Log:
Two missing overloads implemented

Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-11-17 23:13:26 UTC 
(rev 68114)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-11-17 23:55:31 UTC 
(rev 68115)
@@ -1,3 +1,9 @@
+2006-11-18  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * ClientScriptManager.cs: Implemented two missing
+       GetPostBackEventReference overloads. Made one of the overloads
+       internal for .NET < 2.0.
+
 2006-11-17  Marek Habersack  <[EMAIL PROTECTED]>
 
        * PostBackOptions.cs: Renamed the constructors parameters to match

Modified: trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs     
2006-11-17 23:13:26 UTC (rev 68114)
+++ trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs     
2006-11-17 23:55:31 UTC (rev 68115)
@@ -83,17 +83,47 @@
                                RegisterForEventValidation (control.UniqueID, 
argument);
                        return "javascript:" + GetPostBackEventReference 
(control, argument);
                }
+#endif         
+
+#if !NET_2_0
+               internal
+#else
+               public
 #endif
-               
-               public string GetPostBackEventReference (Control control, 
string argument)
+               string GetPostBackEventReference (Control control, string 
argument)
                {
+                       if (control == null)
+                               throw new ArgumentNullException ("control");
+                       
                        page.RequiresPostBackScript ();
                        return String.Format ("__doPostBack('{0}','{1}')", 
control.UniqueID, argument);
                }
+
+#if NET_2_0
+               public string GetPostBackEventReference (Control control, 
string argument, bool registerForEventValidation)
+               {
+                       if (control == null)
+                               throw new ArgumentNullException ("control");
+                       
+                       if (registerForEventValidation)
+                               RegisterForEventValidation (control.UniqueID, 
argument);
+                       return GetPostBackEventReference (control, argument);
+               }
                
-#if NET_2_0
+               public string GetPostBackEventReference (PostBackOptions 
options, bool registerForEventValidation)
+               {
+                       if (options == null)
+                               throw new ArgumentNullException ("options");
+                       if (registerForEventValidation)
+                               RegisterForEventValidation (options);
+                       return GetPostBackEventReference (options);
+               }
+               
                public string GetPostBackEventReference (PostBackOptions 
options)
                {
+                       if (options == null)
+                               throw new ArgumentNullException ("options");
+                       
                        if (options.ActionUrl == null && 
options.ValidationGroup == null && !options.TrackFocus && 
                                !options.AutoPostBack && 
!options.PerformValidation)
                        {

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

Reply via email to