Issue exporting DataGrid to Excel

G

Guest

Hi I'm using the code shown here to export only my DataGrid to Excel.

http://www.c-sharpcorner.com/Code/2003/Sept/ExportASPNetDataGridToExcel.asp


In my page I have two DropDownListBox, two Textboxes, two buttons and the
DataGrid.

Issue Number1

In this line: Response.End(); I receive an exception: the Subprocess has
been terminated.

Issue Number2

After I remove Response.End(); the Save/Open windows appear but when I open
the Excel document I see the Textboxes and Buttons overlapped, but nothing
about the DataGrid.

Any Sug
..
 
G

Guest

Kenny,
Looks like Dipal didn't check her code. I've seen that error before with
response.end you can just catch it.

Good Luck
DWS
 
G

Guest

Well, I can perfectly catch the exception, but in that case there is not
output at all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top