web 2.0

Downloading Zip File Using Asp.net

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

Comments

Disabled ramps United Kingdom, on 10/28/2009 10:15:00 PM Said:

Disabled ramps

i just want you to know that i really liked this

Wine Aerator United States, on 11/29/2009 7:18:01 AM Said:

Wine Aerator

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 United States, on 12/4/2009 9:45:43 PM Said:

bondage

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 Republic of the Philippines, on 12/9/2009 12:34:11 AM Said:

cosmetic surgery philippines

thankyou, will give this a try.

Reflex Bag United States, on 12/12/2009 2:38:01 PM Said:

Reflex Bag

well, u really create a nice topic about it, i really agree another people can searching your site to find it.

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading