Timer in button c# .net -


i have button want timer in it, 30 sec , when elapsed button enable. buttons download files.

1)is ok if in page_load() write timer , start it? 2)how make change on time in button.text? 3)how make when in elapsed button enable?

thanks, or

is question webforms? can't use .net timer. can use javascript timer.

somewhere near bottom of page:

<script type="text/javascript">     (function() {         var button = document.getelementbyid("the_button_id");         button.disabled = true;         settimeout(function() {             button.disabled = false;         }, 30000);     })(); </script> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -