I have a ASP.NET MVC application where I am showing some files in a html table, in which the user can download the file by clicking on it.
There is a requirement, once the user downloads the file, the file record in the table should not be shown anymore. When the user downloads the file, I mark it as downloaded by the user in the backend table, and if I refresh the page then the record wont be shown on the grid since it is not coming from the backend anymore.
The problem that I am facing is, once I return the File from the controller I cannot figure out a way to run the refresh JavaScript Method. The download link in the html table is a anchor tag.
Can anyone please point me to a solution.
Thanks

