Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using c# coding in asp.net. I have to export some database values into excel sheet. I searched on the google and got some codes. But none of them works fine for me. Please help me with some simple methods to export data....

Thanks....
Posted

Quit similar discussion take place few days ago. Did you search our forum?

Anyway, read the following article.

Exporting DataGrid to Excel, Word and Text Files[^]
 
Share this answer
 
Comments
Neha Thanka 3-Oct-11 5:23am    
Is there any way to rename the field heading?
CodingLover 3-Oct-11 5:45am    
What you mean by re-name field heading?
You can see the link for solutions

9 Solutions to Export Data to Excel for ASP.NET[^]
 
Share this answer
 
v4
Hi, use below link:

Export to Excel from GridView in C#[^]

Hopefully, It will solve your problem. :-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900