[Original] Complete JavaScript Script Collection in .NET Background

xiaoxiao2021-03-06  35

#Region statement // --------------------------------------------- ------------------------- ////// author: Nick.Lee //// complete collection of scripts that execute javascript in .net background //// Boyorgril@msn.com////----------------------------------- --------------------------------- # endregion # region in .NET registration javascript script function set /// < Summary> /// Function: Register a scripting language in the client, issue this script /// input before the end tag of the

element of the page object: Page Object in Page Web Page /// Script wants to register JavaScript script, need to include "Script language = JavaScript>, etc." or other tabs // output: no. /// public static void registerStartupScript (System.Web.ui.page page, string script) {string strkey; int i; // Register a key strkey = system.datetime.now.tostring (); // Loop until I find some key for for For (i = 0; i <100; i ) if (! Page.isstartupscriptregistered (strkey i.tostring ())) Break; Page.RegisterStartupScript (StrKey I. Tostring (), script);

///

/// Function: Register a scripting language in the client, issue this script /// input after the start tag of the element of the Page object: Page Object in Page Web Page / // Script JavaScript script wants to register, requires label /// output of