Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userinfo user = new Userinfo();

        if (user.IsLogin() == true)
        {
            this.loginpanel.Visible  = true;
            this.logoutpanel.Visible = false;
            this.usernamelabel.Text  = "欢迎 :" + user.getUserName() + "进入辽东数码商城";
        }
        else
        {
            this.logoutpanel.Visible = true;
            this.loginpanel.Visible  = false;
        }
    }