In web application, i am using code, to download the documnet which is uploaded, which is written in item command event of datalist, but it s giving error like \"Thread was
The issue is that you're calling Response.End() before Response.Flush(). Swap the order of those statements and the issue will go away.
Response.End()
Response.Flush()