|
utilizzazione di un db
cancellazione: parte 1 - scelta del record
scelta dell'utente e cattura dell'ID
<%= Name %>
cancellazione: parte 2 - DELETE
on error resume nextset
conn = server.createobject("adodb.connection")
conn.open "kathi"ID=request.querystring("ID")
' si pu� impedire la cancellazione di un record
If ID = 3 then
response.write "Sorry, this record can't be deleted."
response.write ""
response.write "Try another record"
response.end
End If
SQLstmt = "DELETE * from Sample where ID=" & IDSet RS = conn.execute(SQLstmt)
Conn.Close
� bene verificare gli errori
|