hey ppl
i got it to work using the ff code:
Dim strFileNamePath As String
strFileNamePath = System.IO.Path.GetFullPath(fileName)
Dim myFile As System.IO.FileInfo = New System.IO.FileInfo(strFileNamePath)
HttpContext.Current.Response.Clear()
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" & _
Replace(myFile.Name, ".resources", ""))
HttpContext.Current.Response.AddHeader("Content-Length", myFile.Length.ToString())
If type <> "" Then
HttpContext.Current.Response.ContentType = type
Else
HttpContext.Current.Response.ContentType = "application/octet-stream"
End If
HttpContext.Current.Response.WriteFile(myFile.FullName)
HttpContext.Current.Response.Flush()
however, when deployed in the web server (windows 2003), it seems that the downloaded file (zip file) doesn't contain anything. although when i tested it in my local machine (XP), the code works fine.