Rendering Helper:-

Actionlink helper method will render the hyperlink to another controller action. It uses the routing API to create the url

Syntax:

            
@@Html.ActionLink([Link text], [Action name], [Controller name(optional - without Controller suffix)]
            
            

View:

            
@Html.ActionLink("Link to about About page","About")
            
            

Result:

            
<a href="/Home/About">Link to about About page</<a>
            
            

Output:




RouteLink helper follows the same pattern as ActionLink but it accepts the route name and does not have argument for controller name and action name.

            
@Html.RouteLink("Link to About page", new {action="About"})