Author: LeFrank | Posted on: 11/29/2008 6:38:18 PM | Views : 370

Hi,
Hope you can help me, I've googled this one trying each possible solution I found but none worked for me and I'm a bit stuck.

What is needed: Forcing the "download file" dialog when someone click on a button.
The setup : The page is fully AJAX enabled. The button is automatically created through user input: the user select a row from a gridview this triggers the creation of some output along with the mentionned button. Basically the user is selecting a "job" in the gridview. Each job contains a list of processes. Each process can either have a text output or a binary ouput. When it's a binary output, the file can be downloaded (the output is found in a database). There is no way to be sure of the type of the file it can be a filetype having a recognize mime type or not. It could be a binary type from an in-house application.
So my goal was to use the octet-stream so someone could simply download the file by clicking t ...

Go to the complete details ...