Refreshing data in HTML for Excel Download

This is the code where I am passing data to HTML. Problem happens when user presses button multiple time …data gets accumulated