one Html.ActionLink ("LinkText", "ActionName")
The first parameter of the overload is the text to display for the link, and the second parameter is the method of the corresponding controller.
The default controller is the controller for the current page, and if the controller for the current page is products, then Html.ActionLink ("detail", "detail")
Will generate <a href= "/products/detail" >all</a>
two Html.ActionLink ("LinkText", "ActionName", "controlname")
The overload has one more argument than the first overload, and he specifies the name of the controller,
such as Html.ActionLink ("detail", "detail", "products") will generate
<a href= "Products/detail" >all</a>
three Html.actionlik ("LinkText", "ActionName", routevalues)
RouteValue can pass parameters to the action, such as Html.ActionLink ("detail", "detail", new {id=1})
Will generate <a href= "PRODUCTS/DETAIL/1" >DETAIL</A>
This assumes that the current controller is a products.
four Html.ActionLink ("LinkText", "ActionName", Routevalues,htmlattributes)
Htmlattribute can set the properties of the <a> tag,
such as Html.ActionLink ("detail", "detail", new{id=1},new{target= "_blank"})
Will generate <a href= "PRODUCTS/DETAIL/1" target= "_blank" >DETAIL</A>
The main need is that if written new{target= "_blank", class= "ClassName"} will be an error,
Because class is a keyword, this should be written @class = "ClassName".
five Html.ActionLink ("LinkText", "ActionName", "ControlName", Routevalues,htmlattributes)
This overload contains all of the parameter types mentioned above