praetorean
asked on
page refresh after exporting to excel
Hi all,
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=[exce l filename]"
Response.ClearContent()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("conten t-disposit ion", attach)
Response.Write(stringWrite .ToString)
Response.End()
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?
thanks
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=[exce
Response.ClearContent()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("conten
Response.Write(stringWrite
Response.End()
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?
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So it becomes
attach = "attachment;filename=[exce
Response.ClearContent()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("conten
Response.Write(stringWrite
Response.End()
Response.Redirect("Page.as