protected void ChangePasswordUser_click(object sender, EventArgs e) { try { canvBiz = new CanvasBizProcess(); if (Request.QueryString["fp"] != null && !string.IsNullOrEmpty(Request["id"])) { if (Request.QueryString["fp"].Contains("1") && Request.QueryString["id"] != null) { string cid = Request["id"].ToString(); id = HttpUtility.UrlDecode(CommonUtility.Decrypt(Request["id"].ToString())); int status = canvBiz.ChangePasswordUser(id, txtpasswordnew.Text.TrimStart(' ').TrimEnd(' ')); string script = string.Empty; if (status != 0) { canvBiz.UpdatefpStatus(id, 0); script = "alert('Password Changed Successfully ... ');" + "location.href='Home.aspx?rp=1';"; this.ClientScript.RegisterStartupScript(typeof(Page), "RedirectArticle", script, true); } } } } catch (Exception ex) { CommonUtility objCommon = new CommonUtility(); objCommon.SendErrorMail(ex.Message, ex.StackTrace, System.Reflection.MethodBase.GetCurrentMethod().Name.ToString(), System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.ToString(), SessionData.Customer.CustomerID); } }