PDA

View Full Version : End the application


jeremywatco
11-22-2002, 06:11 PM
Is there anyway to stop a page from continuing to run?

If an IF statment condition is met I want my asp page to stop loading. Is this possible?

Also when I am displaying data on the screen from the database I would like it to be in two columns. So basically after 2 records are displayed add a '<TR></TR>' and then add 2 more records into cells. Any ideas?

fractalvibes
11-22-2002, 08:00 PM
Response.End will stop page execution.

i.e.

If Err.Number > 0 then
Response.Write "Crashed and Burned"
Response.End
End If

whammy
11-22-2002, 11:56 PM
Well to answer your first question, usually I would use subroutines, and only output the content of the subroutines I want displayed depending upon certain conditions. That way, the only thing that will run is what you tell it to.

Look at my example contact form for a very basic example of what I mean:

http://www.solidscripts.com/email.txt

Your other question is just a tables question - the table will simply be built however you tell it to be built... :confused:

try colspan and rowspan?