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

Disable a design-time control button that uses an Image

Status
Not open for further replies.

cglinn

Programmer
Sep 3, 2003
44
US
First, I have read through all the submitions in these forums related to my problem and none of the solutions have worked.

With that being said:

I am currently using Javascript to run validation on the submition of a form once a "Save" button is clicked. I would like to disable the button upon it's first click. The problem is that it is a design-time control object, which uses an Image for the button. I can do exactly what I want with a normal design-time control button (one which doesn't use an image). I have tried the solution which increments a variable and if it is greater than 1, then it cancels the event. However, it also cancels the first click event -- not a good thing.

Anyone have a solution that will work for me?

Thanks.
 
How about setting it's visibility to hidden after the click? Or,use a button and format it to look like your image using CSS.
 
The problem is that there is a bunch of stuff going on once the button is clicked and it takes awhile to finish. Once it DOES finish it goes to a different page. I assume you mean to hide it using VB on the onclick event? That wouldn't work either or I would just disable it there also. And let's just say I need to keep the button as is, with the Image.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top