Beispiel #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            StudentProfile op = new StudentProfile(userid, status);

            op.Show();
            this.Hide();
        }
Beispiel #2
0
        private void btnUserProfile_Click(object sender, EventArgs e)
        {
            StudentProfile sp = new StudentProfile(userid, status);

            sp.Show();
            this.Hide();
        }
Beispiel #3
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            string newstatus = "Unverified";

            try
            {
                String query = "Update StudentDetails set name = '" + txtName.Text + "', email = '" + txtEmail.Text + "', phonenumber = '" + txtPhone.Text + "', nid = '" + txtNID.Text + "', studentid = '" + txtSID.Text + "', institute = '" + txtInstName.Text + "', address = '" + txtAddress.Text + "', status = '" + newstatus + "' where userid ='" + userid + "' ;";

                dbc.InsertIntoDatabase(query);

                status = newstatus;

                MessageBox.Show(this, "Update Successful");

                StudentProfile op = new StudentProfile(userid, status);
                op.Show();
                this.Hide();
            }
            catch (Exception er)
            {
                MessageBox.Show(this, "Wrong Input");
                Console.WriteLine("Error : " + er);
            }
        }