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
*********************
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