private bool DeleteActionPlanByID(string actionPlanID) { oDV = AdoUDIRS.DeleteActionPlanByID(actionPlanID); if (oDV == null) { Label lbl = (Label)Page.Master.FindControl("lblMessage"); Message.Failure("Failed to delete action plan data.", lbl); ///// Pass label saleem return(false); } else { DataTable dt = oDV.ToTable(); //RefId = oDV.Table.Rows[0]["IncidentID"].ToString(); //Session["IncidentID"] = RefId; Label lbl = (Label)Page.Master.FindControl("lblMessage"); //--Response.Redirect("~/Web/ThankYou.aspx", true); Message.Success("Action plan deleted successfully.", lbl); ///// Pass label saleem return(true); } }