page refresh after exporting to excel
Posted on 2008-10-20
how to you repost a page after exporting the content of a datagrid into an excel file?
the following is the scenario that i am working on:
1- datagrid's populated based on a query's resultset.
2- datagrid is manipulated, i.e. data may be updated, rows selected via check boxes.
3- back-end data is updated
4- selected rows are exported to excel
my problem here is such that, after i am able to export to excel using the code below:
attach = "attachment;filename=[excel filename]"
Response.ContentType = "application/vnd.ms-excel"
i would like to be able to repost the page to be able to do a refresh.
how do you code to initiate a page refresh at runtime?