html code:
<asp:Button runat="server" ID="btnTest" Text="Test" OnClick="btnTest_Click" />
Jquery Code:
$('[id$=btnTest]').click(function(){
$('[id$=btnTest]').attr('disabled', 'true');
});
CodeBehind:
protected void btnTest_Click(object sender, EventArgs e)
{
//here not come.
}
Code Behind btnTest event not work ?
ClientIDof your button in JS. It is not the same asID, but something likectl00_Content1_btnTest, if you use masterpage.disabled="disabled"attribute instead ofdisabled="true".