Hi,
I have a fileupload control in my pase(asp.net 2.0).When someone click on the upload botton,a lage mdb file data is uploaded in sql server.I have also a cancel button on the page.When someone clicks the cancel button,I have to stop the file uploading.
I have tried response.end() in the cancel button.But doesnt work.Whenever cancel button is clicked,the page is hanged.
please someone help me to do this.
Thanks in advance.

Scott LysleRank #49 · 31K reputationPosted Oct 29, 2007, 7:50 PM EDT
Well, there is probably a much better way to do it but I have found that this stops it (if you can live with the redirect back to the page):
FileUpload1.FileContent.Dispose() Response.Redirect("http://localhost/somesite/Default.aspx")coolcoder7 reputationPosted Oct 29, 2007, 8:46 PM EDT
Thank for ur help.I will try this technique.