Enabling and Disabling Download button when downloading csv file

Viewed 49

Hi I m trying to add functionality if I click on submit then csv file will be downloaded.Till the download is completed the button should not be enabled. Basically I want to find out that download is completed or not. Is there any way I can achieve that? I using ASP.NET and js and html.

1 Answers

I am not sure what platform are you using, but you can add disabled attribute to button, using the client side script you can disable it right away and upon successfull download, mark the disabled attr to false again

Related