Hello,
I have a page with 2 callback panels and a toolbar, I use the following code to download a file stored in a SQL Server database:
Code: Visual Basic.NET
Response.Clear()
Response.Buffer = True
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = lcDocType
Response.AppendHeader("Content-Disposition", "attachment; filename=" + lcDocName)
Response.BinaryWrite(bytes)
Response.Flush()
Response.End()
The problem is when I execute it from a toolbar button, when I call it from a normal button I'm able to download the file.
Is there something in the code that I will could change to make it works from the toolbar button?
Thanks in advance. Kind Regards