How to disable the submit button?

JvlshZ

New Member
I have a page, that has 3 buttons on, add, submit and cancel.<BR><BR>When I click add, another panel pops up where I can add an entry to a dropdown box, I want to then disable the submit button so the user can't submit the whole form before he/she completes the adding of the new item.<BR><BR>I know in javascript it's document.form1.submitbtn.disabled=true;<BR><BR>and I THINK it's submitbtn.disabled = true in VB, but I get the error that I can't disable it because it's private?<BR><BR>Can someone who had a similar problem help me with this? or if you know how to do it it would be great!submitbtn.enabled = true or false<BR><BR>in VB you use enabled and not disabledNote: Disabling of a button only works in IE.Disabling a button will prevent any wired events from firing on the server side though. Browsers that don't support enabled / disabled controls may do a postback, but will not do anything when it gets to the server.<BR>Thanks guys, I am doing this for an intranet, so everyone is using IE. I will however, if I decide to release my code to the public, make it netscape compatible.<BR><BR>Ciao
 
Back
Top