Php die () equivalent code in asp

I am learning asp. In php we use

die('error message')

      

what is its equivalent code in asp (vb script)? How to debug in asp?

+3


source to share


2 answers


In classic ASP use this:

Response.End

      


To output something before exiting, use this code:



Response.Write "Hello, World!"
Response.End

      

This is equivalent to:

die("Hello, World!");

      

+10


source


I don't remember very much about asp.net, but you can use

return the variable here

or



Response.End 

      

The second output will output all

0


source







All Articles