Example #1
0
 protected void Unnamed_Command1(object sender, CommandEventArgs e)
 {
     if (ck.checkstringnull(txtPassword.Text.Trim()) && ck.checkstringnull(txtrepass.Text.Trim()))
     {
         if (txtPassword.Text.Trim() == txtrepass.Text.Trim())
         {
             un.user_password = txtPassword.Text.Trim();
             cl.UpdateUserPass(un);
             ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Change Password Complete! ')", true);
             load_us();
             lbtnshpa.Visible    = true;
             txtPassword.Visible = false;
             txtrepass.Visible   = false;
             lbtnCpa.Visible     = false;
         }
         else
         {
             ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Passwords Do Not Match ')", true);
         }
     }
     else
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Please Type Password And Confirm Password ')", true);
     }
 }