lundi 23 novembre 2015

send value to controller using html.actionlink

I am passing value from html.actionlink to the controller. But the problem is in controller, value is not being fetched. I don't know what is the problem.

Here is my code :

View :

    @Html.ActionLink("Copy", "Copy", "Item", new { id = item.Item_code}, null)

Contoller :

       public ActionResult Copy(int id)
                 // Logic here
                 return View();

Thank you !

Aucun commentaire:

Enregistrer un commentaire