i have a random data selected from database to the .aspx form

example:
1
Hello 1
2
World 2
Nice 1
3
Meet 2
You 2


and i want to export it to excel using "export to excel" button so that it became like this

http://imgur.com/BDblk.jpg

anyone can help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.