ASP.net best way to change links
<p>Given:</p>

<pre><code>&lt;div class="subMenu"&gt;
    &lt;a href="products.aspx" class="subLink"&gt;Products&lt;/a&gt; &lt;a href="productCats.aspx" class="subLink"&gt;Categories&lt;/a&gt; &lt;a href="example.aspx" class="subLink"&gt;Another&lt;/a&gt; 
&lt;/div&gt;
</code></pre>

<p>In my code behind, how would I programatically change the list of links in that div?</p>

<p>In my code behind I would have something along the lines of:</p>

<pre><code>if(menuID == 0) {
  // Display some links here
}else if(menuID == 1) {
  // Display some links here
}else if(menuID == 2) {
  // Display some links here
}
</code></pre>

<p>Sorry for the simplicity, just trying to learn.</p>
