Question

So Response.End() is harmful, how do I flush the response and terminate it? Is this the correct way:

resp.Flush();
resp.Close();
Was it helpful?

Solution

Yes, that's correct.

Actually, you don't need resp.Flush() - Close() will flush the response.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top