file download - using response.writefile()

  • Thread starter Thread starter EJChew
  • Start date Start date
E

EJChew

Hi,

I have ASP.NET page that would like to download a list
(many) pdf files. I intend to down the file into the browser
C:\ root drive without prompting the user to "SAVE AS" dialog box.

Would appreciate some help on this (maybe a code snipnet).

Thanks

EJ Chew
 
just set the content type like so

Response.ContentType="application/vnd.ms-excel";

and then you can use response.write(filename) to write the file. it will
pop open a dialog box
 
Back
Top