Posts

Showing posts from November, 2005

Output content as excel and display File download box

Scenario: if you want to output some data as excel file, and display the File download dialog box, use the code below : Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "attachment;filename= .xls"