コード例 #1
0
        public void Btn_Login_Select_Admins_Click(object sender, EventArgs e)
        {
            da = new OleDbDataAdapter("select * from Administrators where User_Name='" + Txt_LogIn_UserName.Text + "'and Password='******'", con);
            da.Fill(dt);
            if (dt.Rows.Count <= 0)
            {
                LBL_LogIn_Status.Text = "User Name or Password are Invalid, Please Try Again ! ";
            }
            else if (dt.Rows.Count > 0)
            {
                LBL_LogIn_Status.Text = "Logged In Successfully";
                this.Hide();
                Implement i = new Implement();
                i.Show();
            }
            LoadPanel l = new LoadPanel();

            if (Txt_LogIn_UserName.Text == "*****@*****.**" && Txt_LogIn_Password.Text == "123abc")
            {
            }
        }