Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: How do I send data to excel and then refresh aspx page?

$
0
0
Robert,
Thanks for your input. Shortly after I posted this I did just what you said.
 Dim dt As DataTable = Session("dataTableToExcel")
 Session.Remove("dataTableToExcel")
This does two things ...
 1. It removes the data right away.  I will not be needing it after I download it to excel.
 2. Since I remove it right after I created it, the user never has a chance to create a new tab between the time I create it, use it, and then remove it.    
My data is not very large, and should never really be. This is an in-house (intranet) application so we do have somewhat more control over how our users use this page.


Thanks again for your feed back.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>