Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ow to disable a button on an asp page when clicked

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I would love to know how a button can be disabled when it is clicked.
 
I think the better is to put a variable on your page on an hidden form and after, you just have to check the hidden value to know if you active or not your button
 
Not a really good idea (since it only works in IE), but here we go :) :

<input type=&quot;button&quot; name=&quot;Test&quot; value=&quot;Test&quot; onClick=&quot;this.form.Test.disabled=true;&quot;>

Have fun with it!



<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top