Exemple #1
0
        protected void Page_InitComplete(object sender, EventArgs e)
        {
            IsPageInitCompleted = true;

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

            // 注册样式
            RegisterStartupCss();

            // 注册脚本
            RegisterStartupScript();
        }
Exemple #3
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());
     }
 }