value not getting from index view to controller method in asp.net mvc 2 -


As I am showing a list of records in the index view in my ASP.NET mvc 2 + C # application. On the edit link, I am passing the string value which is the primary key in the DB, so that I can access the related records. But as I have set the debugger in the edit method on the controller, in the parameter list, I can not find the value that I have passed, the scenario is like this:

INDEX: see

  & lt;% = html.ActionLink ("edit", "edit", new {id = item.CRNo}) & gt%; In Administrator:  
  Edit Public ActionResult (string CRNO) // Similar {... some code ...}  

where the CRNO is the string property of the item.

You have a parameter in the id link, Should read.

  Edit Public Functionality (String ID)  

Comments