how can i hide html list item <li> using c# from code behind
I want to hide html list item that is "li" tag using C#. But i can't do this. In earlier i just hide DIV tag using c#. But i can't hide "li" tag. Please help me to do this .If you can please send your detail Explanation... This is my partial code : this.hide.style.Add("display", "none"); // Error in hide This is my html code : <li ID="hide" style="display: Block;"><a href="../list.aspx" >list Approval</a></li> Please help me to solve this issue .... GDB Add an id and runat="server" to your list item: <li id="fooItem" runat="server"> <%-- ... --%> </li> Set the visibility property from code