I have a webpage (data.aspx) with a datagrid which paging and a button which can download that data to excel (excel.aspx). When a user clicks on the button, an excel file downloads as it has a PostBackUrl attribute set to excel.aspx. This function works, OK.
However, after I download the excel file, and click on a page on a page number on the datagrid, it download the excel file again. I suspect it is still posting back to excel.aspx when it should be returning to the same page (data.aspx).
Is there a way to change the PostBackUrl, download a file for example, and return the form so the original postbackurl file is retained?