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.
coolcoderPosted Oct 30, 2007, 12:46 AM
Thank for ur help.I will try this technique.
Scott LyslePosted Oct 29, 2007, 11:50 PM
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")