Michael,
I have a javascript that does this. It's contained within a Javascript
component that I give away for free, including source code, on my website.
You may see a demo of this particular script and the others contained in the
component here:
http://www.aboutfortunate.com?page=javascriptdemo.
The script goes a bit further by calling the .Net validation routines before
it disables the button so that if a page isn't valid the user doesn't wind
up stuck on the page. The downloadable source code is for VS 2003 .NET 1.1
(I haven't had time to upgrade it to 2.0 yet but am hoping to soon). But
even if you just want to use the one script or need to upgrade it you'll be
able to use the source code as an example to go by.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Michael Groeger" <go*********@web.de> wrote in message
news:%2*****************@TK2MSFTNGP10.phx.gbl...
Hi all,
I want to disable a button after it's clicked on the clients side, so that
this cannot be clicked twice. I tried this with adding the "onclick"
attribute to the button and disable the button then in javascript. Then I
tried it using Page.RegisterOnSubmitStatement(), but when I then click the
button the Click event is not fired on server side.
Any ideas?
Regards,
Michael