protected void confirm_Click(object sender, EventArgs e) { try { //string emp_id = ds.Tables[0].Rows[0]["emp_id"].ToString(); int i = objcommon.ChangePassword(objutility.Decrypts(emp_id, true), objutility.Encrypts(txtnewpass.Text, true)); //int i = objcommon.ChangePassword(); if (i > 0) { string Url = ConfigurationManager.AppSettings["redirectURL"]; Response.Write("<script language='javascript'>window.alert('Password Updated Successfully');window.location='" + Url + "login.aspx';</script>"); } else { Response.Write("<script language='javascript'>window.alert('Updation Failed');</script>"); } } catch (Exception ex) { } }