i want to create a css navigation bar for asp.net links.
<div>
@{
foreach (LangViewModel langViewModel in Model.Langs)
{
<p>
@Html.ActionLink(langViewModel.Name, "Lang", "Home", new {
langID = langViewModel.Id }, new { })
</p>
}
</div>
this code generates 3 links which direct me to other pages of my website namely
Numbers
Alpha
Alphanumeric
now i want have these 3 links generated by asp.net in navigation bar.
i was using w3schools as reference.
for this to work we need to use <ul> and <li>tags in following way with some css.
<ul>
<li><a class="active" href="#home">Home</a></li>
<li><a href="#news">News</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#about">About</a></li>
</ul>
but my links are generated in ASP.NET code above so what should i write in so that could get a navigation bar.
<li><a class="active" href="WHAT SHOULD DO HERE">Home</a></li>


ulandli. What is the problem you are having ?