Html to Excel problem
I have 2 hyperlinks. On the click of first hyperlink, ExcelReport.aspx is
executed which contains the code:
> Response.ContentType = "application/vnd.ms-excel"
> Response.AddHeader("content-disposition", "attachment; filename=Report.xls")
After this code, i write all the response.write statements that generates the html table. The Excel Report is saved perfectly. The page does not output anything on the screen. No problem till here!
Now when i click on the second link, Report2.aspx is called which contains code to generate the second html table and output it on the screen. In debug mode, every line of code is executed. But the screen is blank. The new html table is not displayed.
Someone please help! Am depressed with this problem!!!!
Regards,
Spacy
|