Try to add the function in the button like this
function f()
{
alert("Hello");
}
then add this to the button
<asp:button id="btnDisable" onclientclick="f();" runat="server" style="border:1px solid red; background:Silver" clientidmode="Static" text="Disable" xmlns:asp="#unknown" />
Best Regards
Ahmed Assaf
eBusiness Developer