Hi All,
I'm generating a PDF using my own code which is fired by a gridcolumbutton. The PDF is created on the server side without any issue but doesn't export the file Client side.
CodeSnip
filename = "pdf_sample_" & TEST & ".pdf"
TEST_UtilityClass.generateTESTPDF(strPath,SampleName )
' strPath is serverpath
Response.ContentType = "application/pdf"
Response.AddHeader("Content-Disposition", "attachment;filename=" & filename)
Me.EnableViewState = False
Response.WriteFile(strPath)
Response.Flush()
Response.Close()