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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable button after submit

Status
Not open for further replies.
Joined
Mar 14, 2002
Messages
711
Location
US
I have been searching and reading articles on this, but nothing that works really well...what I want to do is "disable" the submit button once the button has been pushed once and the data is being updated on the server, what is the best way to do this, javascript or something else?

Thanks,
 
try something like this:

Code:
btnSubmit.Attributes.Add("onclick", "this.disabled=true;")

-DNG
 
I don't know, but it does not want to work? It does grey out the submit button, but the whole form does not continue to process, the database is never updated and the form is not redirected to the next page, too long of a timeout maybe?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top