Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 638
deepak Avatar asked Feb 01 '13 08:02

deepak


2 Answers

In Classic ASP, Use this:

Response.End

To output something before ending, use this code:

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

This is equivalent to:

die("Hello, World!");
like image 198
Praveen Kumar Purushothaman Avatar answered Nov 08 '22 23:11

Praveen Kumar Purushothaman


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

return your variable here

or

Response.End 

The second one will output everythings

like image 29
Ludo237 Avatar answered Nov 09 '22 01:11

Ludo237