Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFolder is frowned upon
Message
De
05/07/2011 22:27:56
 
 
À
05/07/2011 13:07:36
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01517236
Message ID:
01517368
Vues:
43
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform