I am exporting a gridview to excel, using .Net 4.0 in a web application, on page load and need for the file to be generated and then the page to be redirected to the calling
In JavaScript:
function refresh() { document.location.reload(true); }
button: