% strcat = request("cat") strAction = request("cmdAction") ' Create a recordset object to store specific table information Set conn = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From tblServiceCategories where CategoryName = '" + strCat + "'" 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 strservicecat = conn("CategoryName") if Request.form <> "" and strAction <> "" then ' Create a recordset object to store specific table information Set conn = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Delete * From tblServiceCategories where CategoryName = '" + strcat + "'" 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 Response.redirect "manageservices.asp" end if %> <% if strWarningErrMsg <> "" then %>
DELETE SERVICE CATEGORY
Are you sure you want to delete the service category below?