Currently using ASP.NET MVC "Razor" for my website project, picking up skills along the way.
My site consists of 5 or 6 pages internally, with one page linking to an external site. My goal is to create a seamless user experience where all pages feel cohesive.
To achieve this, I have implemented a standard HTML menu using an XHTML unordered list and CSS for layout:
<ul id="menu">
<li class="selected"><a href="@Href("~/")">Home</a></li>
<li><a href="http://ceklog.kindel.com">cek.log</a></li>
<li><a href="@Href("~/Services")">Services</a></li>
<li><a href="@Href("~/Charlie")">Charlie's Stuff</a></li>
<li><a href="@Href("~/Contact.cshtml")">Contact</a></li>
</ul>
Through browsing on Stack Overflow, I've come across similar queries about tracking the selected menu item on dynamic pages:
Javascript Changing the selected Menu items class
However, these methods do not apply to my scenario as the user isn't changing selections within one page, but rather navigating to separate pages entirely.
I'm now seeking advice on how best to handle this situation. How can I ensure continuity in the user's navigation experience?