Is there a way where if a recordset is empty or null to ignore the rest of the vbscript on an asp page? Let me know if you need more of a detailed explanation.
Printable View
Is there a way where if a recordset is empty or null to ignore the rest of the vbscript on an asp page? Let me know if you need more of a detailed explanation.
If rs.recordcount < 0 Then Response.End
thats assuming that you are talking server side.
Will this also ignore HTML code or just VBScript?
yes, BUT
don't forget to close everything before:
i.e
-recordset
-connection
and when everything is close do
response.end
Once you use Response.End, ASP will stop processing anything left on the page (code, html, etc).
Thank you everyone for your input. It worked!