Example #1
0
        protected void Deco_OnClick(object sender, EventArgs e)
        {
            USERS users = new USERS((string)Application["DB"], this);

            users.NonQuerySQL("UPDATE USERS SET ONLINE='N' WHERE USERNAME='******'");
            Response.Redirect("Login.aspx");
        }
Example #2
0
        protected void CV_TB_Password_ServerValidate(object source, ServerValidateEventArgs args)
        {
            USERS users = new USERS((string)Application["DB"], this);

            args.IsValid = users.CheckPassword(TB_Username.Text, TB_Password.Text);

            if (args.IsValid)
            {
                Session["LogedUser"] = TB_Username.Text;
                users.NonQuerySQL("UPDATE USERS SET ONLINE='Y' WHERE USERNAME='******'");
                Goto_Index("/Index.aspx");
            }
        }