You need to sign in to do that
Don't have an account?
NK@BIT
reload visualforce page after export csv file
I have a visualforce page in which I reterieve record after search in a pageblock table. I have a button which exports a CSV file for those records. For those CSV records I have written a visualforce page whose content type I have set to CSV. After export CSV file I want to reload the page.
<apex:commandButton value="{!export}" rerender="pageblockid"/>
If your issue is the page redirecting to blank page after exporting, then try the above steps.
Rerender eiother pageblock or outputpanel in that commandButton. it will prevent from redirecting to blank page after exporting to csv.
make sure you specify setredirect(false) in your pagereference method of export CSV /return NULL.
After your Export operation do like this in same method,
Try this...and if this helps, mark this as 'Best Answer'.