L
Lars Netzel
I want to press a Linkbutton (in a DatagridItem) and return a file that is
not shared in the IIS. I want to disallow "deeplinking".
The following code works fine (it sends the file I want) but I want it to be
parallel to the webpage, not replacing the page with the datagrid.. how do I
force the file download to a new window?
Public Sub SendFile(ByVal Filepath As String)
Response.Clear()
Response.ContentType = "octet/stream"
Response.AddHeader("Content-Disposition", "outline;
filename=filetosend.mp3")
Response.Flush()
Response.WriteFile(Filepath)
Response.Flush()
End Sub
Best Regards
/Lars
not shared in the IIS. I want to disallow "deeplinking".
The following code works fine (it sends the file I want) but I want it to be
parallel to the webpage, not replacing the page with the datagrid.. how do I
force the file download to a new window?
Public Sub SendFile(ByVal Filepath As String)
Response.Clear()
Response.ContentType = "octet/stream"
Response.AddHeader("Content-Disposition", "outline;
filename=filetosend.mp3")
Response.Flush()
Response.WriteFile(Filepath)
Response.Flush()
End Sub
Best Regards
/Lars