Esempio n. 1
0
        private void StudentDashBoardButton_Click(object sender, EventArgs e)
        {
            StudentDashboard dashboard = new StudentDashboard();

            dashboard.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void StudentUpdateProfileButton_Click(object sender, EventArgs e)
        {
            Int64 mobile = Int64.Parse(PhoneNumberTextBox.Text);


            query = " UPDATE New_student SET UserName ='******',FullName='" + FullTextBox.Text + "',Password='******',BloodGroup='" + BloodGroupComboBox.Text + "',DateOfBirth='" + DateTimePicker.Text + "',PhoneNumber=" + mobile + ",Email='" + TextBoxEmail.Text + "',Gender='" + GenderComboBox.Text + "',Address='" + AddressTextBox.Text + "',VerficationId='" + IdNumberTextBox.Text + "',RoomNumber=" + RoomNoText.Text + " WHERE UserName='******' ";
            fn.setData(query, "Updated Successfully......");
            userNameTextBox.Text = FullTextBox.Text = PassTextBox.Text = BloodGroupComboBox.Text = DateTimePicker.Text = PhoneNumberTextBox.Text = TextBoxEmail.Text = GenderComboBox.Text = AddressTextBox.Text = IdNumberTextBox.Text = RoomNoText.Text = string.Empty;
            StudentDashboard student = new StudentDashboard();

            student.Show();
            this.Hide();
        }