displaying save file dialog in ASP.NET -



displaying save file dialog in ASP.NET -

i'm going display save file dialog in asp.net web page, user clicks button , save file dialog appears allows user save study in csv format in hard disk, how can it? possible display save file dialog in asp.net? thanks

to this, you'll want create whole new page (or, better, *.ashx handler) serve csv results. button should post request page. when receives request, in either processrequest() method (for handler) or page_load() method (for page), have code this:

response.clear(); response.contenttype = "text/csv"; response.addheader( "content-disposition", "attachment;filename=\"report.csv\"" ); // write csv info response.outputstream here response.end();

asp.net

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -