I had this error Thread was being aborted., this afternoon in my error log.
The code that caused this error is:
Response.Redirect("Login.aspx", true);
If I change the bool
value to false
, the error log becomes empty and this error stops coming again, but the program stops working.
If I keep it as such, I am getting this error like nuisance.
I want to know the alternative for using Response.Redirect
passing true
as the value for the endResponse
parameter.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…