I have some a series of Hyperlinks on a page
<TD class="cssfile" id="link1" noWrap><A class= class="cssfile" href="~/Home/default.aspx" runat="server">Home</A></TD>
.. etc
I want to hide some of the links on page_load depending on some criteria stored in a database. so I am trying to hide teh entire cell that holds this Hyperlink tag.
How do I reference a certain cell (named link1, link2 link3 etc)in my code behind file?
I tried using thier id but I get "Object reference not set to an instance of an object."
Alternatively, is there a way to use a style sheet Asp:hyperlinks ?
<TD class="cssfile" id="link1" noWrap><A class= class="cssfile" href="~/Home/default.aspx" runat="server">Home</A></TD>
.. etc
I want to hide some of the links on page_load depending on some criteria stored in a database. so I am trying to hide teh entire cell that holds this Hyperlink tag.
How do I reference a certain cell (named link1, link2 link3 etc)in my code behind file?
I tried using thier id but I get "Object reference not set to an instance of an object."
Alternatively, is there a way to use a style sheet Asp:hyperlinks ?