Exemplo n.º 1
0
        private void Control_Init()
        {
            if (DataEval.IsEmptyQuery(_loginviewid))
            {
                MultiView_Status.SetActiveView(View_New);
            }
            else
            {
                if (Request.QueryString["PageLink"] == "Disable")
                {
                    lbtn_Login.Enabled  = false;
                    lbtn_Logout.Enabled = false;
                }

                lbl_UserName.Text = "Logged as: " + Security.Users.UserStatus.Current_UserName(this.Page);

                if (Security.Users.UserStatus.Current_UserID(this.Page) == "0")
                {
                    MultiView_Status.SetActiveView(View_Login);
                }
                else
                {
                    MultiView_Status.SetActiveView(View_Logout);
                }
            }
        }
Exemplo n.º 2
0
        private void Control_Init()
        {
            lbl_UserName.Text = "Logged as: " + Security.Users.UserStatus.Current_UserName(this.Page);

            if (Security.Users.UserStatus.Current_UserID(this.Page) == "0")
            {
                MultiView_Status.SetActiveView(View_Login);
            }
            else
            {
                MultiView_Status.SetActiveView(View_Logout);
            }
        }