コード例 #1
0
 protected void Requestpassword_btn_Click1(object sender, EventArgs e)
 {
     if (email_txtbox.Text == "")
     {
         Error_label.Text = "Email field empty";
     }
     else
     {
         string         sucess         = "";
         ForgotPassword forgotPassword = new ForgotPassword();
         sucess = forgotPassword.Getuserpass(email_txtbox.Text, "select PARENT_PASSWORD from TBL_PARENT_REGISTRATION where PARENT_USERNAME=@Email", "PARENT_PASSWORD");
         if (sucess == "ok")
         {
             Error_label.Text = "User id and password sent to your registered email";
         }
     }
 }
コード例 #2
0
 protected void Requestpassword_btn_Click1(object sender, EventArgs e)
 {
     if (email_txtbox.Text == "")
     {
         Error_label.Visible = true;
         Error_label.Text    = "Email field empty";
     }
     else
     {
         ForgotPassword forgotPassword = new ForgotPassword();
         string         sucess         = forgotPassword.Getuserpass(email_txtbox.Text, "select STUDENT_PASSWORD from TBL_STUDENT_REGISTRATION where STUDENT_EMAIL=@email", "STUDENT_PASSWORD");
         if (sucess == "ok")
         {
             Error_label.Visible = true;
             Error_label.Text    = "Userid and password send to your email";
         }
     }
 }