Author: igorz
Date: 2006-11-27 07:21:07 -0500 (Mon, 27 Nov 2006)
New Revision: 68503

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
Log:
2006-11-27 Igor Zelmanovich <[EMAIL PROTECTED]>

        * ClientScriptManager.cs: refactoring:
        extracted method RegisterWebFormClientScript    



Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-11-27 12:05:31 UTC 
(rev 68502)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-11-27 12:21:07 UTC 
(rev 68503)
@@ -1,5 +1,10 @@
 2006-11-27 Igor Zelmanovich <[EMAIL PROTECTED]>
 
+       * ClientScriptManager.cs: refactoring:
+       extracted method RegisterWebFormClientScript    
+
+2006-11-27 Igor Zelmanovich <[EMAIL PROTECTED]>
+
        * Control.cs: implemented OpenFile()
 
 2006-11-26 Igor Zelmanovich <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs     
2006-11-27 12:05:31 UTC (rev 68502)
+++ trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs     
2006-11-27 12:21:07 UTC (rev 68503)
@@ -138,11 +138,9 @@
                                else
                                        return GetPostBackEventReference 
(options.TargetControl, options.Argument);
                        }
+
+                       RegisterWebFormClientScript ();
                        
-                       if (!IsClientScriptIncludeRegistered (typeof(Page), 
"webform")) {
-                               RegisterClientScriptInclude (typeof(Page), 
"webform", GetWebResourceUrl (typeof(Page), "webform.js"));
-                       }
-                       
                        if (options.ActionUrl != null)
                                RegisterHiddenField (Page.PreviousPageID, 
page.Request.FilePath);
                        
@@ -161,6 +159,13 @@
                                        ClientScriptManager.GetScriptLiteral 
(options.ValidationGroup)
                                );
                }
+
+               internal void RegisterWebFormClientScript ()
+               {
+                       if (!IsClientScriptIncludeRegistered (typeof (Page), 
"webform")) {
+                               RegisterClientScriptInclude (typeof (Page), 
"webform", GetWebResourceUrl (typeof (Page), "webform.js"));
+                       }
+               }
                
                public string GetCallbackEventReference (Control control, 
string argument, string clientCallback, string context)
                {

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

Reply via email to