Exemple #1
0
        /// <summary>
        /// 注册页面第一次加载时的样式和脚本
        /// </summary>
        private void SetupFirstLoadResource()
        {
            // 页头注册公共CSS/Javascript
            CommonResourceHelper.RegisterCommonResource(Page);

            // 注册样式
            RegisterStartupCss();

            // 注册脚本
            RegisterStartupScript();
        }
Exemple #2
0
 private void RegisterStartupCss()
 {
     if (_startupCssDic.Count > 0)
     {
         StringBuilder sb = new StringBuilder();
         foreach (string value in _startupCssDic.Values)
         {
             sb.Append(value);
         }
         CommonResourceHelper.RegisterHeaderCSS(Page, sb.ToString());
     }
 }