I have following code in my user control, and I want to access each control in this list either by accessing
<div class="menubarbackground">
<ul>
<li id="first" class="heigfbtitle">
<a href="#" id="firstM" class="teegin mft5">1 First Item</a>
</li>
</ul>
</div>
How do I implement the code to access these control in code behind?
runat="server", which will allow you accessing the element from code-behind using it's Id.runat="server"if you want to use them as controls and access them on the server side.