Hi,
Firstly, please use OnClientClick="return CheckValidation()" instead of OnClientClick="CheckValidation()".
<asp:Button ID="buttonOKDetails" runat="server" Width="70px" Text="OK" OnClick="ButtonOkDetails_Click" Enabled="false" OnClientClick="return CheckValidation()" />
function CheckValidation()
{
debugger;
return false;
}
If it returns false, the server click will not work.
You can use alert() to check if the checkValidation is running.
function CheckValidation()
{
alert('this's running');
return false;
}
If the alert window is popped up, it means the client event is running. If you didn't turn on the debugger mode, debugger won't be worked.