title: Disable all anchor tags on asp.net page using c#
body: <p>I have multiple anchor tags on my web page and I am currently using the following method to disable a hyperlink</p>
  
  <p>Here is code</p>
  
  <pre><code>&lt;a href="mylink" id="CA" runat="server"&gt;Curretn Activity&lt;/a&gt;
  CA.Attributes["Onclick"] = "";
  </code></pre>
  
  <p>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#?</p>