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

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

            // 注册样式
            RegisterStartupCss();

            // 注册脚本
            RegisterStartupScript();
        }