I'm working on Visual Studio MVC currently. As MVC helps to create codes automatically for some functions. I am trying to understand what does this sentence of code means. I understand the first two parameters, but not the third one.
-----> @Html.ActionLink("Text Displayed", "Method name in controller", "Third???")
My code for my controller:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MP.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ActionResult About()
{
ViewBag.Message = "Your application description page.";
return View();
}
public ActionResult Contact()
{
ViewBag.Message = "Your contact page.";
return View();
}
}
}
Below is the code I do not understand:
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>