Author: Hejime | Posted on: 8/24/2009 6:46:33 PM | Views : 250

hi there, i'm currently having problems trying to do a clean download
all other files seems to work normally and able to open normally after saving to local harddisk
but only .txt files will have <script>window.alert('Thread was being aborted.');</script> inside the text document
i don't get it why... this is the download code
If (System.IO.File.Exists(empty)) = True Then Response.Clear() Response.ContentType = "application/octet-stream" Response.AppendHeader("Content-Disposition", "attachment; filename=" & strName) 'Response.TransmitFile(empty) Response.WriteFile(empty) Response.End() Else SysClass.ErrHandler("File No Longer Exists.", "slh;", Me.Request.Url.ToString) End If


...

Go to the complete details ...