protected void DeleteRequest_Click(object sender, EventArgs e)
 {
     tpsData.deleteRequest(tbSearch.Text);
     Session["Title"]   = "<h1>Request Deleted</h1>";
     Session["Message"] = "Your request has been deleted. Please contact TPS for any and all questions. Thank you and have a great day!";
     Server.Transfer("success.aspx", true);
 }
Esempio n. 2
0
 // Method to delete staff requests
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     tpsData.deleteRequest(staff_grid.Rows[staff_grid.SelectedIndex].Cells[0].Text);
     Session["Title"]   = "<h1>Request Deleted</h1>";
     Session["Message"] = "The request has been deleted. Please contact TPS for any and all questions. Thank you and have a great day!";
     Server.Transfer("success.aspx", true);
 }