private void btnReset_Click(object sender, EventArgs e) { string s; ChangePasswordWebService cpws = new ChangePasswordWebService(); s = cpws.ChangePasswordBLL(txtUserHidden.Text, "oldpasssword", "123", "123", 1); MessageBox.Show(s, "Report"); if (s == "Password Updated Successfully. Use your New Password now.") { MessageBox.Show("Your New Password is 123", "New Password"); } }
private void button1_Click(object sender, EventArgs e) { string s; ChangePasswordWebService cpws = new ChangePasswordWebService(); if (txtConfirmNewPassword.Text != txtNewPassword.Text) { MessageBox.Show("New Password and Confirm New Password field doesnt match, Enter Again", "Error"); } else { s = cpws.ChangePasswordBLL(lblUser.Text, txtOldPassword.Text, txtNewPassword.Text, txtConfirmNewPassword.Text, 0); MessageBox.Show(s, "Report"); } }