Here is the quick code of downloading the zip file from asp.net (vb.net)
1: Dim _strBeingViewedName As String = "MyZip"
2: Response.ContentType = "application/x-zip-compressed"
3: Response.AppendHeader("Content-Disposition", "attachment; filename=" + _strBeingViewedName + ".zip")
4: Response.TransmitFile("..\\zipPath\\" & _strBeingViewedName + ".zip") 'Full Path of the zip file
5: Response.End()
Tags:
.net | asp.net | vb.net
Related posts
Comments
Disabled ramps , on 10/28/2009 10:15:00 PM Said:
i just want you to know that i really liked this
Wine Aerator , on 11/29/2009 7:18:01 AM Said:
Many years I've been reading a lot of ebooks about designing web. and I must say, what you're sharing in here is a quality one.thanks
bondage , on 12/4/2009 9:45:43 PM Said:
absolutely wonderful... like a hot slap of bondage across the face. did I mention bondage? I think I must have. Ok, what about bdsm? take that keyword relevance!
cosmetic surgery philippines , on 12/9/2009 12:34:11 AM Said:
thankyou, will give this a try.
Reflex Bag , on 12/12/2009 2:38:01 PM Said:
well, u really create a nice topic about it, i really agree another people can searching your site to find it.
Add comment
Living as an expatriate in Riyadh, Saudi Arabia. Belongs from Karachi, Pakistan. Working as Sr Software Engineer