I got this code from the asp.net/designs page. I was in the process of adding pages to it. This is the name of the design: Orange Tabs by jlerasmus
Per your suggestion here is the code again:
<div id="menucontainer">
<ul id="menu">
<% if (Html.IsCurrentAction("Index", "Home")) { %>
<li class="active"><%= Html.ActionLink("Home", "Index", "Home")%></li>
<% } else { %>
<li><%= Html.ActionLink("Home", "Index", "Home") %></li>
<% }%>
<% if (Html.IsCurrentAction("About", "Home"))
{ %>
<li class="active"><%= Html.ActionLink("About", "About", "Home")%></li>
<% } else { %>
<li><%= Html.ActionLink("About", "About", "Home")%></li>
<% }%>
<% if (Html.IsCurrentAction(" Web Sites Request", "Home"))
{ %>
<li class="active"><%= Html.ActionLink("Web Sites Request", "Web Sites Request", "Home")%></li>
<% } else { %>
<li><%= Html.ActionLink("Web Sites Request", "Web Sites Request", "Home")%></li>
<% }%>
<% if (Html.IsCurrentAction("Databases", "Home"))
{ %>
<li class="active"><%= Html.ActionLink("Databases", "Databases", "Home")%></li>
<% } else { %>
<li><%= Html.ActionLink("Databases", "Databases", "Home")%></li>
<% }%>
<% if (Html.IsCurrentAction("Programming", "Home"))
{ %>
<li class="active"><%= Html.ActionLink("Programming", "Programming", "Home")%></li>
<% } else { %>
<li><%= Html.ActionLink("Programming", "Programming", "Home")%></li>
<% }%>
<% if (Html.IsCurrentAction("Portfolio", "Home"))
{ %>
<li class="active"><%= Html.ActionLink("Portfolio", "Portfolio", "Home")%></li>
<% } else { %>
<li><%= Html.ActionLink("Portfolio", "Portfolio", "Home")%></li>
<% }%>
<% if (Html.IsCurrentAction("Contact", "Home"))
{ %>
<li class="active"><%= Html.ActionLink("Contact", "Contact", "Home")%></li>
<% } else { %>
<li><%= Html.ActionLink("Contact Me", "Contact", "Home")%></li>
<% }%>
</ul>
</div>
</div>
T
That is from the site.master page.
This is from the HomeController.cs page:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
[HandleError]
public class HomeController : Controller
{
public ActionResult Index()
{
ViewData["Message"] = "LadyDee's Web Specialties!";
return View();
}
public ActionResult About()
{
return View();
}
public ActionResult Web Sites Request()
{
return View();
}
public ActionResult Databases()
{
return View();
}
public ActionResult Programming()
{
return View();
}
public ActionResult Portfolio()
{
return View();
}
public ActionResult Contact()
{
return View();
}
}
I have taken the ASP.NET 2.0 E-Commerce in c# 2005 course and the ASP.NET 3.5 course. I am studying for my exam in 70-536. I am on the asp.net site quite often and wanted to learn MVC. so I download a design.
I would also like to say thank you very much for the information on downloading your book, I want to learn as much as I can.
Thank you
Darlene D. Murphy
deemurphy_us@yahoo.com