> This will hide the button and not disable it. But the goad is still
acheived. May this will work:
idSomeButton.Attributes.Add("onclick", "this.disabled= 'disabled' ");
I have wanted to do this for a long time, however using a method such
as this one does not work (or at least, did not work for me in v1.1)
because if the page was invalid, the onclick would disable the button,
but the form would not be submitted due to the invalid data.
For example, imagine there is a required field called name, which the
user leaves blank and presses submit. The submit button gets disabled,
and then the user is asked to enter their name. Problem.
Or am I missing something?
Daniel.