Naomi,
This does work. Taking out the disabled setting allows the server side OnClick method to fire. I originally thought, however, that not disabling the button would still enable the button to be pressed again and cause the same situation of having duplicates added, but it doesn't. I am guessing that the form.submit that immediately follows in the client side code takes care of this. Here is the final code for the button:
<mm:mmButton ID="btnSubmit" runat="server" Text="Save" OnClientClick="this.value = 'Submitting...';
;this.form.submit(); "
OnClick="btnSubmit_Click" Width="100px" /></td>
Thanks again for your help.
Bob
>Just curious, if you remove this.disabled=true and only leave this.value = 'Submitting';return true;
>
>would the code in OnClick event work?
>
>>This did not work as the OnClick event still does not fire.
>>
>>I will need to do more research on this. Thanks for your help.
>>
>>Bob
>>
>>>
>>>OnClientClick must return true in order for OnClick to fire server code.
>>>
>>>Try
>>>
>>>OnClientClick="this.disabled=true;this.value='Submitting...';return true;"
>>>
>>>
>>>If this would not work for some reason, we may need to put this code into separate JavaScript function.