Possible Duplicate:
Disabling LinkButton doesn't disable the click event in javascript
I have a linkbutton in ASP.NET.
I have set its property Enabled = false;
<asp:LinkButton ID="lnkButton" runat="server"
Enabled = "false"
OnClientClick="return confirm('Are you sure ?')" > Click Me
</asp:LinkButton>
Event thought I have set the property Enabled = false the OnClientClick event is still fired.
How can I prevent the OnClientClick event from firing?
This is from Disables the link button
check this also how-to-enable-or-disable-linkbutton