Click here to Skip to main content
13,149,756 members (82,558 online)
Rate this:
 
Please Sign up or sign in to vote.
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 15-Oct-12 21:05pm
PBGuy1.8K

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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....
  Permalink  
Comments
shabari7 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.170924.2 | Last Updated 16 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100