I am using ASP.Net Open/Save dialog box not saving PDF documents correctly. The file acts like it's being saved but the size is only 1KB and the orignal file size is 10KB.
This is my code:
Dim root As String = "C:\"
Dim filepath As String = Request.Params("file")
If Not filepath Is Nothing Then
If File.Exists(filepath) Then
Dim filename As String = Path.GetFileName(filepath)
Dim newFile = root + filename
Response.ContentType = "application/pdf"
"attachment; filename=""" & filename & """")
I apprecate any help you can give me.