% strId = request("Id") 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 TblCountries where Country_Id = '" + strId + "'" 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 strCountry = conn("Country") 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 TblCountries where Country_Id = '" + strId + "'" 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 'Response.Write custid Response.Redirect "manageCountries.asp" end if %>
| DELETE COUNTRY | |
| Error(s):<%= strwarningErrMsg %> | |
|
|
|