Export data as Excel file from ASP.NET

Posted by Yongwei Xing on Stack Overflow See other posts from Stack Overflow or by Yongwei Xing
Published on 2010-04-08T09:18:38Z Indexed on 2010/04/08 9:23 UTC
Read the original article Hit count: 301

Filed under:
|
|

Hi all

I have data like below

AAAAAA
BBBBBB
CCCCCC
DDDDDD
EEEEEE

Now there is button on the page,when I click the button, the browser would download a excel file with the data above, and stay current page. Is there any simple way to do it? The data is very simple. only one column, and not huge.

Best Regards,

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#