Correct way to end response
-
12-09-2019 - |
Question
So Response.End() is harmful, how do I flush the response and terminate it? Is this the correct way:
resp.Flush();
resp.Close();
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