Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            con.Open();
            SqlCommand cmd = con.CreateCommand();

            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "select * from Login where Email ='" + textBox1.Text + "'";
            cmd.ExecuteNonQuery();
            DataTable      dt = new DataTable();
            SqlDataAdapter da = new SqlDataAdapter(cmd);

            da.Fill(dt);
            count = Convert.ToInt32(dt.Rows.Count.ToString());

            if (count == 0)
            {
                MessageBox.Show("You have entered wrong OTP");
            }
            else
            {
                this.Hide();
                Reset_Password reset = new Reset_Password();
                reset.Show();
            }

            con.Close();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Reset_Password reset = new Reset_Password();

            reset.Show();
        }