I am surprised to see that there is no article which answers this question with any details. I have few questions related to RouteData.Values[""]
.
I saw this code:
public ActionResult Index()
{
ViewBag.Message = string.Format("{0}---{1}--{2}",
RouteData.Values["Controller"],
RouteData.Values["action"],
RouteData.Values["id"]);
return View();
}
Here it is basically reading values which potentially sounds like "Meta-data" of the controller. Or is it something that View can also pass to Controller?