As a base for discussion. Create a standard ASP.NET MVC Web project.
It will contain two menu items in the master page:
I recently created an HTML Helper for this that looks like:
public static string NavigationLink(this HtmlHelper helper, string path, string text)
{
string cssClass = String.Empty;
if (HttpContext.Current.Request.Path.IndexOf(path) != -1)
{
cssClass = "class = 'selected'";
}
return String.Format(@"- {2}
", path, cssClass, text);
}
The Implementation looks like this: