Given:
<div class="subMenu">
<a href="products.aspx" class="subLink">Products</a> <a href="productCats.aspx" class="subLink">Categories</a> <a href="example.aspx" class="subLink">Another</a>
</div>
In my code behind, how would I programatically change the list of links in that div?
In my code behind I would have something along the lines of:
if(menuID == 0) {
// Display some links here
}else if(menuID == 1) {
// Display some links here
}else if(menuID == 2) {
// Display some links here
}
Sorry for the simplicity, just trying to learn.
I think you should use Panel control and add Hyperlinks inside.
ASPX page:
code behind: