Esempio n. 1
0
        public void Page_PreRender(object sender, EventArgs e)
        {
            WebFormHelper.GetJSIncludes(this.Page);

            if (AppSettings.CombineCssAndJsIncludes)
            {
                var slug      = StringHelper.CreateSlug(Request.Url.PathAndQuery);
                var cssLoader = WebFormHelper.GenerateCssFileTag(AppSettings.LoadCssIncludesUrl + "_" + slug, TemplateBaseUrl, null, true);
                var jsLoader  = WebFormHelper.GenerateJsFileTag(AppSettings.LoadJsIncludesUrl + "_" + slug, TemplateBaseUrl, null, true);

                JsIncludesPlaceHolder.Controls.Add(jsLoader);
                CssIncludesPlaceHolder.Controls.Add(cssLoader);
            }
        }