Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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
(unknown member)

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 at 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
0 Sergey Alexandrovich Kryukov 499
1 Nirav Prabtani 298
2 OriginalGriff 215
3 _Amy 165
4 Abhinav S 160
0 OriginalGriff 7,715
1 Sergey Alexandrovich Kryukov 6,911
2 Maciej Los 3,954
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 16 Oct 2012
Copyright © CodeProject, 1999-2014
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