Exemple #1
0
 protected void Button15_Click(object sender, EventArgs e)
 {
     if (txtpass.Text == "")
     {
         Label1.Text = "Enter Password";
     }
     else if (txtpass.Text != txtcpass.Text)
     {
         Label1.Text = "Password not same !!";
     }
     else
     {
         int result = 0;
         _StudentBL = new StudentBL();
         result     = _StudentBL.BL_Student_change_Password(Convert.ToInt32(Session["sid"].ToString()), txtpass.Text);
         if (result != 0)
         {
             Label1.Text = "Password has been changed !!";
         }
     }
     MultiView1.ActiveViewIndex = 2;
 }