Lets see:
this is the way of the server side
<asp:button id="btnSave" runat="server" text="Click me" xmlns:asp="#unknown" />
On the server (or you can do it in html directly)
btnSave.OnClick += btnSave_Click;
This is incorrect if you're trying to show/hide server-side control:
$('#btnSave').show();
This is due to server side naming convention that adds all containers names in front of the id like ctl_00_ctl_01_btnSave. It should be:
$('#<%=btnSave.ClientID%>').show();
where <%= %> marks document.write from server side
jQuery.on version:
http://api.jquery.com/on/[
^]
$('document').on('click', '#<%=btnSave.ClientID%>') {
function () {
}
});
I hope this helps. Good luck.