Jump to content

How to check asp deleted record.


Recommended Posts

I want to show an error if orderid not found.I used this code, but! it's not working.Am i doing something wrong?

<%call ConnectionsqlText  = "delete from orders where orderid='123'"set objRs = server.CreateObject("adodb.recordset")If Not isNull(objRs) Then	objRs.ActiveConnection = objConn	objRs.Source = sqlText	objRs.open ,,3,3	response.Write("Record Deleted.")else	response.Write("Record Not Found.")end ifCall CloseConnection%>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...