protected void btnSavePwd_Click(object sender, EventArgs e) { int intErrorPwd = 0; string strErrorPwd = ""; if (txtNewPwd.Value.Trim()=="") { strErrorPwd += "<img src='image/warning.png' height='25px' width='25px' /> Enter New Password.<br />"; intErrorPwd++; } if (txtNewPwd.Value.Trim()!="" && txtNewPwd.Value.Length < 6) { strErrorPwd += "<img src='image/warning.png' height='25px' width='25px' /> Password Length is minimum 6 characters.<br />"; intErrorPwd++; } if (txtConPwd.Value.Trim() == "") { strErrorPwd += "<img src='image/warning.png' height='25px' width='25px' /> Enter Confirm Password.<br />"; intErrorPwd++; } if (txtNewPwd.Value.Trim() != txtConPwd.Value.Trim()) { strErrorPwd += "<img src='image/warning.png' height='25px' width='25px' /> Confirm Password is not match with password.<br />"; intErrorPwd++; } if (intErrorPwd == 0) { ServeAtDoorstepData.CustomerDetails objCusdet = new ServeAtDoorstepData.CustomerDetails(); objCusdet.LoginPassword = txtNewPwd.Value.Trim(); objCusdet.CustomerID = Convert.ToInt32(sCustomerId); objService = new ServeAtDoorstepService(); objService.UpdateCustomerPassword(objCusdet); this.modalpopPassword.Hide(); LoadProfile(); } else { this.modalpopPassword.Show(); divErrorPwd.InnerHtml = strErrorPwd; pnlpopupPwd.Height = 260; } }