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 11/29/2009 4:15:00 AM Said:
i just want you to know that i really liked this
Wine Aerator , on 12/30/2009 1:18:01 PM 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 1/5/2010 3:45:43 AM 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 1/9/2010 6:34:11 AM Said:
thankyou, will give this a try.
Reflex Bag , on 1/12/2010 8: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
Try, Strive and Struggle are the keys of my hope. When there is no hope, no success. So keep hoping and keep winning. No idea how true that statement is, as I myself is losing the biggest hope of mine. So do it on your own risk :)