does masterpage know page being displayed?


when i navigate website utilizing masterpages, does concentration know page i am on? so, does store an vigilant i access?



the reason i am seeking i reinstate this:



//masterpage 
<div id="nav_main">
<ul><asp:contentplaceholder id="navigation" runat="server">
</asp:contentplaceholder></ul>
</div>

//content page(s)
<asp:content contentplaceholderid="navigation" id="thenav" runat="server">
<li><a href="default.aspx">home</a></li>
<li id="current"><a href="faq.aspx">faq</a></li>
<li><a href="videos.aspx">videos</a></li>
<li><a href="#">button 4</a></li>
<li><a href="#">button 5</a></li>
</asp:content>


with some-more glorious fortitude navigation, highlights couple page carrying list item's id set "current". now any page recreates navigation the particular link's id set current.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members