2

Hi all I would like to apply css for <li> tag which is in master page dynamically from code behind this is my design

<div id="primary_nav">
    <ul>
       <li class="left active" id="nav_discussion" runat="server">
           <a title="Go to Forums" href="">
               Forums
           </a>
       </li>
       <li class="left" id="nav_members" runat="server">
           <a title="Go to Member List" href="Members.aspx">
               Members
           </a>
       </li>
    </ul>
 </div>

enter image description here In my content page I accessed <li> as follows

Control li = Page.Master.FindControl("nav_members");

But I am unable to apply the required css here can some one help me

Developer
  • 8,390
  • 41
  • 129
  • 238