protected override void OnLoad(EventArgs e) { #region 获取站点 //_Site = new Sites()[Shove._Web.Utility.GetUrlWithoutHttp()]; _Site = new Sites()[1]; if (_Site == null) { PF.GoError(ErrorNumber.Unknow, "域名无效,限制访问", this.GetType().FullName); return; } #endregion #region 获取用户 _CardPasswordAgentUser = CardPasswordAgentUsers.GetCurrentUser(); if (isRequestLogin && (_CardPasswordAgentUser == null)) { Response.Redirect("Login.aspx"); return; } #endregion HtmlMeta hm = new HtmlMeta(); hm.HttpEquiv = "X-UA-Compatible"; hm.Content = "IE=EmulateIE7"; base.OnLoad(e); }
protected override void OnLoad(EventArgs e) { this._Site = new Sites()[1L]; if (this._Site == null) { PF.GoError(1, "域名无效,限制访问", base.GetType().FullName); } else { this._CardPasswordAgentUser = CardPasswordAgentUsers.GetCurrentUser(); if (this.isRequestLogin && (this._CardPasswordAgentUser == null)) { base.Response.Redirect("Login.aspx"); } else { base.OnLoad(e); } } }