Hello guys, I wonder if you can help. I've got an existing site that I want to "convert" to an ASP.NET one and I gave a good read at the master template tutorial suggested in another thread, but I'm having a few problems deciding what goes in the master page and what doesn't. On the general level it is obvious of course, the elements common to all the pages go in the master page, the rest is out. In my case I've got the following problem: the navigation on the home page has the following markup:
<div class="navigation">
<a href="home.html" class="active">Home</a>
<a href="about.html">About</a>
<a href="other_projects.html">Other projects</a>
<div class="clear"></div>
</div>
In my asp.net master page though, I decided not to include the navigation elements:
<div class="navigation">
<asp:ContentPlaceHolder ID="navigationPlaceholder" runat="server">
</asp:ContentPlaceHolder>
<div class="clear"></div>
</div>
and to leave that to each page.Now, you could argue that the navigation is a common element across the site, and in fact it is, but the markup will be slightly different for each page: we saw the home page above, here are the two other pages. About page:
<div class="navigation">
<a href="home.html">Home</a>
<a href="about.html" class="active">About</a>
<a href="other_projects.html">Other projects</a>
<div class="clear"></div>
</div>
Other project page:
<div class="navigation">
<a href="home.html">Home</a>
<a href="about.html">About</a>
<a href="other_projects.html" class="active">Other projects</a>
<div class="clear"></div>
</div>
As you can see the difference is the active class and where it sits on each page, that's why I did it this way. Is it right, wrong? I mean if I had to include the full navigation in the master page, how do I then place the class in the right place on the right page?