In my project I need to disable a hyperlink based on some condition. So how can I do this from code behind using C#?
in your aspx, add runat="server" attribute to the tag:
<a id="myHyperLink" runat="server">...</a>
in Page_load method:
if( condition )
myHyperLink.Enabled = false;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With