Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use epplus to download .xlsx files using response object, after the save dialog appears my UI gets disturbed, styles are not applied. I am using .ashx to download data as .xlsx file. In the download button click event i am dynamically creating iframe and setting its style to display none and an src to run the .ashx file where in package.getasbytearray is sent to response object.I even have modal popup opened during this process. I use to hide it before I set src to iframe. My problem is that the styles are not applied to controls , so that they were invisible after the response is sent to browser. There's no code after response.close(), just a finally block executes.
any suggestion is appreciated.
Posted

1 solution

Dear
do not use response.end();
if you use this please use like these response.end("", false);
i will suggest you do not use any type of response related method....
 
Share this answer
 
Comments
[no name] 16-Oct-12 6:22am    
How could I download a file without response object,moreover I have been using reponse.close() instead of response.end();

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