Sharepoint - Refreshing page or making it to respond after downloading the file. All happening in Webpart
I have put your code in the page load event and it resolves the issue.
btnExport.UseSubmitBehavior = false;
btnExport.OnClientClick = "_spFormOnSubmitCalled = false;
_spSuppressFormOnSubmitWrapper=true;";