private void button3_Click(object sender, EventArgs e) { if (txtPw.Text == "") { errorProvider1.SetError(txtPw, "Password cannot be a null value."); commonFunctions.SetMDIStatusMessage("Password cannot be a null value.", 1); return; } if (txtPw.Text != txtRePw.Text) { errorProvider1.SetError(txtPw, "Password and the confirmation password must be same"); commonFunctions.SetMDIStatusMessage("Password and the confirmation password must be same.", 1); return; } if (UserDefineMessages.ShowMsg("", UserDefineMessages.Msg_PerfmBtn_Save, commonFunctions.Softwarename.Trim()) == System.Windows.Forms.DialogResult.Yes) { u_Userxcc obju_User = new u_Userxcc(); obju_User.userId = commonFunctions.Loginuser; obju_User = new U_UserxDL().Selectu_User(obju_User); obju_User.password = commonFunctions.CreateCheckPassword(true, txtPw.Text.Trim()); new U_UserxDL().Saveu_UserSP(obju_User, 3); pnl_pass.Visible = false; } }
public static string FindExisitingUSer(string suppcode) { string str = ""; if (U_UserxDL.ExistingU_User(suppcode.Trim())) { u_Userxcc cat = new u_Userxcc(); cat.userId = suppcode.Trim(); str = new U_UserxDL().Selectu_User(cat).userName; } else { str = "<Error!!!>"; } return(str); }