protected void Page_Load(object sender, EventArgs e) { main_function PPHfunction = new main_function(); PPHfunction.QueryExecuteNonQuery("delete from User_Profile WHERE UserID='" + PPHfunction.decodeBase64(Request.QueryString["Param"].ToString()) + "'"); Response.Write("<script>alert('Delete Success');window.location.href='../../../.." + PPHfunction.decodeBase64(Request.QueryString["url"].ToString()) + "';</script>"); }
protected void Page_Load(object sender, EventArgs e) { main_function PPHfunction = new main_function(); PPHfunction.QueryExecuteNonQuery("update User_Profile set Passwd_Expired_Date='" + DateTime.Now + "', Passwd='" + PH_EncrptHelper.MD5Encryp("P@ssw0rd") + "' WHERE UserID='" + PPHfunction.decodeBase64(Request.QueryString["Param"].ToString()) + "'"); Response.Write("<script>alert('Password Reset Already');window.location.href='../../../.." + PPHfunction.decodeBase64(Request.QueryString["url"].ToString()) + "';</script>"); }
protected void Page_Load(object sender, EventArgs e) { main_function PPHfunction = new main_function(); //Response.Write(Request.QueryString["force"].ToString()); if (Request.QueryString["force"].ToString() == "Y") { PPHfunction.QueryExecuteNonQuery("update User_Profile set User_Status='" + Request.QueryString["status"].ToString() + "', Passwd_Expired_Date='" + DateTime.Now + "', Passwd='" + PH_EncrptHelper.MD5Encryp("P@ssw0rd") + "' WHERE UserID='" + Request.QueryString["id"].ToString() + "'"); } else { PPHfunction.QueryExecuteNonQuery("update User_Profile set User_Status='" + Request.QueryString["status"].ToString() + "' WHERE UserID='" + Request.QueryString["id"].ToString() + "'"); } Response.Write("<script>alert('Status Updated Success');window.location.href='../../../.." + PPHfunction.decodeBase64(Request.QueryString["url"].ToString()) + "';</script>"); }