Context.Response.Clear(); Context.Response.ContentType = "application/pdf"; Context.Response.AddHeader("Content-Disposition", "attachment;filename=Test.pdf"); Context.Response.Write("Hi"); Context.Response.Flush(); Context.Response.End();
Response.Clear() Response.Buffer = True Response.ContentType = "application/pdf" Response.AddHeader("content-disposition", "attachment; filename=Test ")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)