saber si ya se envio un archivo

M

mafz20

como se puede saber si ya se envio un archivo estoy usando este codigo:


*********************
Dim strPhysicalPath As String
Dim objFileInfo As System.IO.FileInfo

Response.Buffer = True

strPhysicalPath = Server.MapPath("adjuntos2\" &
PathVirtual)
'exit if file does not exist
If Not System.IO.File.Exists(strPhysicalPath) _
Then Exit Sub
objFileInfo = New System.IO.FileInfo(strPhysicalPath)
Response.Clear()
'Add Headers to enable dialog display
Response.AddHeader("Content-Disposition", "attachment;
filename=" & objFileInfo.Name)
Response.AddHeader("Content-Length",
objFileInfo.Length.ToString())

Response.ContentType = "application/octet-stream"
Response.WriteFile(objFileInfo.FullName)
***************************
lo que quiero hacer es cuando se termine de enviar el archivo mandar a
otra paguina con:
Response.Redirect("cristal.aspx"). gracias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top