Use the asp:button and the postback call isn't called if the button is
disabled.
If you want to use client side scripting, don't register the button click in
the pageload if the button is disabled.
If the button is disabled, it won't be sent to the client in the first
place. If there are no other links to Button1_click, there won't be any way
to get there.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.