Is there any function similar to die()
or exit()
from PHP in ASP.Net?
It depends on where you are in your code, but you want a way of getting the Response
object.
From here, you can call HttpResponse.End()
.
This method sends the buffer to the client, raises the EndRequest event and throws a ThreadAbortException
to stop the rest of the page executing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With