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

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?