protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Login login = new Login(); //页面第一次加载 if (!login.CheckLoginByCookie()) { } string username = Common.CookieHelper.GetCookieValue("username"); } }