When I click an asp:Button some data is stored in my databse. If I double click the button the data is stored twice in the database. I have tried many different solutions to prevent this, but no lock so far.
Here is my code so far:
<asp:Button runat="server" ID="btnSendMessage" Text="Send" OnClick="btnSendMessage_OnClick" OnClientClick="this.disabled=Page_IsValid('Message');" CausesValidation="true" ValidationGroup="Message" />