N
nicholas
how can I disable a button when the user clicks on it and the webform is
validated.
I want this to prevent the user from clicking twice and by this submitting
the form twice.
Thank you.
This is what I tried, but it does nothing:
<script runat="server">
sub submit_it (Obj as Object, e as EventArgs)
if (Page.IsValid) then
BtnSubmit.text = Not(BtnSubmit.Enabled)
end if
End sub
</script>
validated.
I want this to prevent the user from clicking twice and by this submitting
the form twice.
Thank you.
This is what I tried, but it does nothing:
<script runat="server">
sub submit_it (Obj as Object, e as EventArgs)
if (Page.IsValid) then
BtnSubmit.text = Not(BtnSubmit.Enabled)
end if
End sub
</script>