.net C# export to Excel

I would like to create an excel document server side and send it as an attachment in email.
I would like to do that when a button is clicked on an aspx page. I use C#.
The excel document should have 2 sheets. A different datasource for each. I would like to name the sheet. How is best to do this?
johnkainnAsked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.