home / software / tips and tricks / How create a link using action link to pass id parameter in MVC?

How create a link using action link to pass id parameter in MVC?

Updated:  10/17/2013 09:10 AM
Author:  Shiju Mathews

Status:    Resolved.


Html.ActionLink can be used to create a link by passing link test, Action, Controller and id parameter.

@Html.ActionLink("[link Test]", "[Action]", "[Controler]", new { id = [value] }, null)


This will create a link: Account Home on the view page


Note: Assuming that the application is running at localhost, port: 55231
Tags: How create a link using action link to pass id parameter in MVC?
Updated on: December 2024