Response.ContentType = "application/pdf" Response.AddHeader("Content-Disposition", "attachment; filename=test.pdf") Response.Flush() Response.TransmitFile("C:\test\xxxx.pdf) Response.End()