Example #1
0
        private void btn_view_Click(object sender, EventArgs e)
        {
            SqlConnection  con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\Dhwani\Documents\Project_Final.mdf;Integrated Security=True;Connect Timeout=30");
            SqlDataAdapter sda = new SqlDataAdapter("Select * from  CV WHERE Name ='" + txt_name.Text + "'", con);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            if (dt.Rows[0][0].ToString() == "1")
            {
                MessageBox.Show("is there!!!");
                Viewedcv form7 = new Viewedcv();
                form7.Show();
            }
            else
            {
                MessageBox.Show("Error");
            }
        }
Example #2
0
        private void deleteCVToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Viewedcv form6 = new Viewedcv();

            form6.Show();
        }