Jump to content


Photo

CÓdigo Para Download .net


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 MACUL

MACUL

    Doutor

  • Usuários
  • 770 posts
  • Sexo:Masculino
  • Localidade:SP

Posted 07/05/2005, 10:41

CÓDIGO PARA DOWNLOAD
http://www.devarticl...tion-Using-.NET


Dim filename As String = New String("c:\vazio.zip")

If System.IO.File.Exists(filename) Then
Response.Write("ARQUIVOOOO NÃO EXISTE")
Else
Response.ContentType = "application\octet-stream"
Dim downloadFile As System.IO.FileStream = New System.IO.FileStream(filename, IO.FileMode.Open)
Response.Write(downloadFile.Length() & "#")
downloadFile.Close()
Response.WriteFile(filename)
Response.Flush()
Response.End()
End If
*************** M ** A ** C ** U ** L ***************

*************************************************




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq