So Response.End() is harmful, how do I flush the response and terminate it? Is this the correct way:
resp.Flush();
resp.Close();
So Response.End() is harmful, how do I flush the response and terminate it? Is this the correct way:
resp.Flush();
resp.Close();
Yes, that's correct.
Actually, you don't need resp.Flush(). Close() will flush the response.