Tag: ActionLink

Passing Parameters to the ActionLink in ASP.NET MVC

There are times when the parameter has to be passed along with the URL from an ActionLink control in ASP.NET MVC. This can be done easily using the anonymous type which can be passed as the third parameter for the ActionLink helper method. Passing Parameters to the ActionLink in ASP.NET MVC Below is a sample code snippet demonstrating how to pass values to the ActionLink…

What is the difference between RouteLink and ActionLink in ASP.NET MVC ?

This article will cover some of the key differences between the RouteLink and ActionLink helper methods in ASP.NET MVC. What is the difference between RouteLink and ActionLink in ASP.NET MVC ? The Html.ActionLink renders the hyperlink tag to the specified controller action which uses the Routing API internally to generate URL. This renders the Anchor tag that links to the action method. The ActionLink method…