title: disable href on content page from Master page in vb.net
body: <p>Just as the title says. I have code that disables all controls that runat=server. Its as follows</p>
  
  <pre><code>Dim c As Control
  For Each c In pc
     If c.HasControls Then DisableAllControls(c.Controls)
  
     If c.GetType.ToString.ToLower.IndexOf("webcontrols.dropdownlist") &gt; -1 Then
        DirectCast(c, DropDownList).Enabled = False
     ElseIf c.GetType.ToString.ToLower.IndexOf("webcontrols.textbox") &gt; -1 Then
        DirectCast(c, TextBox).Enabled = False
     ElseIf c.GetType.ToString.ToLower.IndexOf("webcontrols.radiobuttonlist") &gt; -1 Then
        DirectCast(c, RadioButtonList).Enabled = False
     ElseIf c.GetType.ToString.ToLower.IndexOf("webcontrols.radiobutton") &gt; -1 Then
        DirectCast(c, RadioButton).Enabled = False
     ElseIf c.GetType.ToString.ToLower.IndexOf("webcontrols.button") &gt; -1 Then
        DirectCast(c, Button).Enabled = False
     End If
   Next
  </code></pre>
  
  <p>But I have a couple of href's in there that i want to disable also. I know they dont runat server, so how can i catch these?</p>