private void button1_Click(object sender, EventArgs e)
 {
     MessageBox.Show("YOU HAVE CHOOSEN THE VALID PURPOSE. \n NOW YOU CAN ENTER !!!");
     LOGIN_PAGE l1 = new LOGIN_PAGE();
     this.Hide();
     l1.Show();
 }
        private void button2_Click(object sender, EventArgs e)
        {
            if (NAME.Text != "" & UNM.Text != "" & PSWD.Text != "" & CPSWD.Text != "" & FPNT.Text != "" & EML.Text != "" & UTYP.Text != "" )
                {
                    if (PSWD.Text  !=   CPSWD.Text)
                    {
                        MessageBox.Show("PLEASE... \n ENTER THE CORRECT PASSWORD !!!");
                    }
                    else
                    {
                        MessageBox.Show("YOU HAVE BEEN REGISTERED SUCCESSFULLY !!!");
                   //     MessageBox.Show("YOUR FINGER PRINT NO IS : "+count);

                        LOGIN_PAGE l3 = new LOGIN_PAGE();
                        this.Hide();
                        l3.Show();
                    }
                 }

                else
                {

                    MessageBox.Show(" PLEASE..... \n FILL ALL THE ENTERIES, ALL ENTERIES ARE MANDATORY !!! ");
                }
        }
Пример #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (UNM.Text != "" &  & OPWD.Text != "" & NPWD.Text != "" & CPWD.Text != "")
                {
                    if (NPWD.Text  !=   CPWD.Text)
                    {
                        MessageBox.Show(" PASSWORD ARE NOT MATCHED \n PLEASE...ENTER THE CORRECT PASSWORD!!!");
                    }
                    else
                    {
                        com.Connection = con;
                        com.CommandText = "update Student_Info set Paswrd= '" + NPWD.Text + "' WHERE Uname = '" + UNM.Text + "'";//(Sname,Uname,Paswrd,Email,Utype,Rlno,Sem,Batch,Deg,Dept) values ('" + RNO.Text + "','" + OPWD.Text + "','" + NPWD.Text + "')";
                        com.ExecuteNonQuery();
                        com.Dispose();
                        //MessageBox.Show("record inserted");

                        MessageBox.Show("YOU HAVE BEEN CHANGED YOUR PASSWORD SUCCESSFULLY !!!");
                   //     MessageBox.Show("YOUR FINGER PRINT NO IS : "+count);
                        LOGIN_PAGE l3 = new LOGIN_PAGE();
                        this.Hide();
                        l3.Show();
                    }
                 }

                else
                {

                    MessageBox.Show(" PLEASE..... \n FILL ALL THE ENTERIES !!! ");
                }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (checkedListBox1.Text == "")
            {
                //MessageBox.Show("Please...\n FIRST CHOOSE THE PURPOSE");
                // STUDENT_PURPOSE sp = new STUDENT_PURPOSE();
                //this.Hide();
                //sp.Show();
            }
            /*com.Connection = con;
            com.CommandText = "insert into Sighin_Info(Uname,Paswrd,Utype) values ('" + UNAME.Text + "','" + PWD.Text + "','" + UTYPE.Text + "')";
            com.ExecuteNonQuery();
            com.Dispose();*/
            //MessageBox.Show("record inserted");
            else
            {
                /*com.Connection = con;
               // com.CommandText = "select * from Sigin Paswrd= '" + NPWD.Text + "' WHERE Uname = '" + UNM.Text + "'";//(Sname,Uname,Paswrd,Email,Utype,Rlno,Sem,Batch,Deg,Dept) values ('" + RNO.Text + "','" + OPWD.Text + "','" + NPWD.Text + "')";
                //com.CommandText = "update Student_Info set Paswrd= '" + NPWD.Text + "' WHERE Uname = '" + UNM.Text + "'";//(Sname,Uname,Paswrd,Email,Utype,Rlno,Sem,Batch,Deg,Dept) values ('" + RNO.Text + "','" + OPWD.Text + "','" + NPWD.Text + "')";
                com.ExecuteNonQuery();
                com.Dispose();
                //MessageBox.Show("record inserted");
                /*String val = button1.Text + "";          //button1_Click.SelectedItem + "";
                MessageBox.Show("USER: "******""))
                 {
                    dateTimePicker1.Visible = true;
                 // FACADEMIC f = new FACADEMIC();
                //this.Hide();
               // f.Show();

                 }*/
                //dateTimePicker1.Visible = true;

                MessageBox.Show("YOU HAVE CHOOSEN THE VALID PURPOSE. \n NOW YOU CAN ENTER !!!");
                DateTime now = DateTime.Now;
                MessageBox.Show("Current time: " + now);
                com.Connection = con;
                com.CommandText = "insert into Login_Scheduld values ('" + uname + "','" + now + "')";
                com.ExecuteNonQuery();
                com.Dispose();

                LOGIN_PAGE l1 = new LOGIN_PAGE();
                this.Hide();
                l1.Show();

            }
        }
Пример #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (RNO.Text != "" & FPNT.Text != "")
     {
         //MessageBox.Show(" PLEASE..... \n FILL ALL THE ENTERIES !!! ");
        // MessageBox.Show(" YOU HAVE FILLED ALL THE ENTERIES !!! ");
         MessageBox.Show(" YOUR PASSWORD IS: \n");
         LOGIN_PAGE l3 = new LOGIN_PAGE();
         this.Hide();
         l3.Show(); 
     }
     else
     {
         MessageBox.Show(" PLEASE..... \n FILL ALL THE ENTERIES !!! "); //MessageBox.Show(" YOU HAVE FILLED ALL THE ENTERIES !!! ");
         //this.Hide(); 
     }
     
 }
Пример #6
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (RNO.Text != "" & FPNT.Text != "" & OPWD.Text != "" & NPWD.Text != "" & CPWD.Text != "")
                {
                    if (NPWD.Text  !=   CPWD.Text)
                    {
                        MessageBox.Show(" PASSWORD ARE NOT MATCHED \n PLEASE...ENTER THE CORRECT PASSWORD!!!");
                    }
                    else
                    {
                        MessageBox.Show("YOU HAVE BEEN CHANGED YOUR PASSWORD SUCCESSFULLY !!!");
                   //     MessageBox.Show("YOUR FINGER PRINT NO IS : "+count);
                        LOGIN_PAGE l3 = new LOGIN_PAGE();
                        this.Hide();
                        l3.Show();
                    }
                 }

                else
                {

                    MessageBox.Show(" PLEASE..... \n FILL ALL THE ENTERIES !!! ");
                }
        }
        private void button3_Click(object sender, EventArgs e)
        {
            if (NAME3.Text != "" & UNAME3.Text != "" & PSWD3.Text != "" & CPSWD3.Text != "" & pictureBox2.Image != null & EML3.Text != "" & UTYPE3.Text != "" & RNO.Text != "" & SEM.Text != "" & BATCH.Text != "" & DEGREE.Text != "" & DEPT3.Text != "")
            {
                {
                    if (UNAME3.Text != RNO.Text)
                    {
                        MessageBox.Show("For student USERNAME and ROLLNO. must be same");

                    }
                }

                if (PSWD3.Text != CPSWD3.Text)//&& UNAME3.Text != RNO.Text)
                {
                    //MessageBox.Show("For student USERNAME and ROLLNO. must be same");

                    MessageBox.Show("SORRY \n YOUR PASSWORD NOT MATCHED !!!");
                }
                else
                {

                    com.Connection = con;
                    com.CommandText = "Select Uname from Student_Info where Uname='" + UNAME3.Text + "'";
                    Int32 reg = Convert.ToInt32(UNAME3.Text);
                    Int32 count = Convert.ToInt32(com.ExecuteScalar());
                    if (count == reg)
                    {
                        MessageBox.Show("already");
                    }
                    else
                    {
                        com.CommandText = "insert into Student_Info(Sname,Uname,Paswrd,Email,Utype,Rlno,Sem,Batch,Deg,Dept) values ('" + NAME3.Text + "','" + UNAME3.Text + "','" + PSWD3.Text + "','" + EML3.Text + "','" + UTYPE3.Text + "','" + RNO.Text + "','" + SEM.Text + "','" + BATCH.Text + "','" + DEGREE.Text + "','" + DEPT3.Text + "')";
                        com.ExecuteNonQuery();
                        com.Dispose();
                        //MessageBox.Show("record inserted");

                        MessageBox.Show("YOU HAVE BEEN REGISTERED SUCCESSFULLY !!!");
                        LOGIN_PAGE l3 = new LOGIN_PAGE();
                        this.Hide();
                        l3.Show();
                    }
                }
            }
            else
            {

                MessageBox.Show(" PLEASE..... \n FILL ALL THE ENTERIES, ALL ENTERIES ARE MANDATORY !!! ");
            }
        }
Пример #8
0
 private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     LOGIN_PAGE  lg = new LOGIN_PAGE();
     this.Hide();
     lg.Show();
 }
Пример #9
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     LOGIN_PAGE rp= new LOGIN_PAGE ();
     this.Hide();
     rp.Show();
 }
Пример #10
0
 private void button1_Click(object sender, EventArgs e)
 {
     LOGIN_PAGE l1 = new LOGIN_PAGE();
     this.Hide();
     l1.Show();
 }