Try Catch?
-
Is there anything like Try/Catch in ASP? I have a database query that may call on non-existant objects (It's like this for a reason, trust me :) ) and I need for it to throw up an "Invalid Argument, Choose another query" message at the bottom of the query page if an error does occur. This is a webpage based interface. - Munty
-
Is there anything like Try/Catch in ASP? I have a database query that may call on non-existant objects (It's like this for a reason, trust me :) ) and I need for it to throw up an "Invalid Argument, Choose another query" message at the bottom of the query page if an error does occur. This is a webpage based interface. - Munty
-
Absolutely..
Try [some code] Catch e As [TypeOf]Exception {e.g. SqlException} Return 0 End Try
Just look up online what type of exeptions will suit your situation. :)