|
-
Jul 19th, 2001, 10:38 AM
#1
Thread Starter
Hyperactive Member
Ignoring code
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.
-vbuser1976 
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
-
Jul 19th, 2001, 10:40 AM
#2
If rs.recordcount < 0 Then Response.End
thats assuming that you are talking server side.
-
Jul 19th, 2001, 10:44 AM
#3
Thread Starter
Hyperactive Member
Quick question
Will this also ignore HTML code or just VBScript?
-vbuser1976 
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
-
Jul 19th, 2001, 10:48 AM
#4
Frenzied Member
yes, BUT
don't forget to close everything before:
i.e
-recordset
-connection
and when everything is close do
response.end
-
Jul 19th, 2001, 10:49 AM
#5
Black Cat
Once you use Response.End, ASP will stop processing anything left on the page (code, html, etc).
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 19th, 2001, 11:33 AM
#6
Thread Starter
Hyperactive Member
THANX!!!!!
Thank you everyone for your input. It worked!
-vbuser1976 
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|