示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (_userId != -1)
            {
                phAnonymous.Visible    = false;
                phAthenticated.Visible = true;

                ltrlUserName.Text      = _userName;
                linkLogout.NavigateUrl = $"{linkLogout.NavigateUrl}{_userKey}";
            }
            else
            {
                phAnonymous.Visible    = true;
                phAthenticated.Visible = false;
            }

            ltrlTitle.Text =
                $"<a href=\"/index.aspx\">{"阿森纳中国官方球迷会"}</a> &raquo; <a href=\"default.aspx\">{ConfigGlobal.PluginDisplayName}</a> &raquo; <strong>{Page.Title}</strong>";

            ltrlClubCount.Text   = ClubLogic.GetActiveClubCount().ToString();
            ltrlUserCount.Text   = ClubLogic.GetActiveUserCount().ToString();
            ltrlPlayerCount.Text = PlayerStrip.GetAllPlayerCount().ToString();
        }