Forum Moderators: open
would like to eliminate that step with html if possible.
Browser determines whats being downloaded (and what default action to take) based on Content-Type: if you create some fancy type that is not recognised by browser like mydata/binary then most (?) browsers (should) prompt to save the file as they don't have default action for that content type.
Doing so might be tricky since most webservers would supply correct content type based on file magic header and/or extention -- you might have to create custom PHP with new header and then read file and send it to client.
Anyhow, you might be able to achieve what you want but if I were you I'd seriously ask your users if they are happy with that -- many expect to have PDF file open in Acrobat Reader when then single click on it.
[3]
<a id="_ctl0__ctl7__ctl0_grdDocuments__ctl2_lnkDownload" class="CommandButton" href="javascript:__doPostBack('_ctl0$_ctl7$_ctl0$grdDocuments$_ctl2$lnkDownload','')">Download</a>
[/3]