Why do ASP.NET LinkButton
controls with OnClientClick
attribute and disabled by setting Enabled="false"
still render onclick
event handler in HTML while Button
controls don't?
It seems counter-intuitive. Since anchors can't really be disabled in browsers, it makes more sense not to attach an onclick event (and href attribute) if it has been set disabled on server-side.