Posted on: 5/21/2014 1:39:27 PM | Views : 395

I have a form that starts a download of a file but when the file is large the download fails to start.  Any suggestions?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim path As String = Server.MapPath(Request.QueryString("file")) Dim file As System.IO.FileInfo = New System.IO.FileInfo(path) Response.Clear() Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name) Response.AddHeader("Content-Length", file.Length.ToString()) Response.ContentType = "application/octet-stream" Response.WriteFile(file.FullName) Response.End() End Sub

Go to the complete details ...