I have multiple anchor tags on my web page and I am currently using the following method to disable a hyperlink
Here is code
<a href="mylink" id="CA" runat="server">Curretn Activity</a>
CA.Attributes["Onclick"] = "";
There are multiple links like above and I want to enable and disable on different conditions. But I want to do this using loop method that when a specific condition becomes true then all hyperlinks should be enabled or disabled on page. Can anyone tell me how can I do this in c#?
if you can use jquery then code below is to register a client script from code behind to disable all anchor links in a page: