Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetFolder is frowned upon
Message
From
05/07/2011 22:27:56
 
 
To
05/07/2011 13:07:36
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01517236
Message ID:
01517368
Views:
42
Hi Rob

after gooling theat command I've come up with the following:
        Dim OutFile As New System.IO.FileInfo(ZipFileNameAndPath)
        Response.Clear()
        Response.ClearContent()
        Response.ClearHeaders()
        Response.AddHeader("content-disposition", "attachment;filename=" + ZipFileNameAndPath)
        Response.AddHeader("Content-Length", OutFile.Length)
        Response.ContentType = "application/pdf"
        Response.TransmitFile(ZipFileNameAndPath, 0, OutFile.Length)
        Response.Flush()
        Response.Close()
        Response.End()
But I am getting the folowing error:
The message received from the server could not be parsed.
Any Ideas?

Thanks!

>If your zip file is stored in a location that the user has access to via the site, you can just redirect them to that file. Otherwise, try using Response.TransmitFile(): http://msdn.microsoft.com/en-us/library/12s31dhy%28VS.90%29.aspx
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform