📄 userpage.cs
字号:
//======================================================
//== (c)2008 aspxcms inc by NeTCMS v1.0 ==
//== Forum:bbs.aspxcms.com ==
//== Website:www.aspxcms.com ==
//======================================================
using System;
using System.Web;
using System.Web.UI;
using System.Collections.Generic;
using System.Text;
namespace NetCMS.Web.UI
{
public class UserPage : BasePage
{
private bool _UserCertificate = true;
protected override void Logout()
{
base.Logout();
string _dirDumm = NetCMS.Config.UIConfig.dirDumm;
string TmpPath = NetCMS.Config.UIConfig.dirUser + "/";
if ((_dirDumm).Trim() != "") { _dirDumm = "/" + _dirDumm; }
ExecuteJs("top.location.href=\"" + _dirDumm + "/" + TmpPath + "login.aspx\";");
Context.Response.End();
}
public UserPage()
{
this.Load += new EventHandler(UserPage_Load);
}
/// <summary>
/// LOAD事件处理
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void UserPage_Load(object sender, EventArgs e)
{
if (_UserCertificate)
CheckUserLoginCert();
else
CheckUserLogin();
}
/// <summary>
/// 设置是否需要验证,要在子类的构造函数里设置
/// </summary>
protected bool UserCertificate
{
set { _UserCertificate = value; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -