Esempio n. 1
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            string         query = "SELECT * FROM Lecturer_db WHERE Password = '******'";
            SqlDataAdapter SDA   = new SqlDataAdapter(query, sqlcon);
            DataTable      dtb   = new DataTable();

            SDA.Fill(dtb);

            if (dtb.Rows.Count == 1)
            {
                textBox2.Show();
                MessageBody.Show();
                label1.Show();
                label3.Show();
                button1.Show();
                button2.Show();
            }
            else
            {
                MessageBox.Show("Please Input Correct Password!");
            }
        }