Esempio n. 1
0
        public static void CompileAndRegisterClientScript(this Page p, Assembly e)
        {
            lock (Token)
            {
                jsc.server.WebTools.CompileClientScript(e);

                foreach (var v in SharedHelper.ModulesOf(e))
                {
                    p.ClientScript.RegisterClientScriptInclude(v, string.Format("{0}.js", new System.IO.FileInfo(v).Name));
                }
            }
        }