DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Calling A MVC Controller And Action Method Using ActionLink

  • submit to reddit
        When creating a link to a controller action in ASP.NET MVC, using the generic ActionLink method is preferable, because it allows for strongly typed links that are refactoring friendly.
Default: ActionLink

 @Html.ActionLink("Delete", "Delete", new { id = item.ID }) 

<a href=""><strong>Java Software</strong></a>