Actionlink not passing variables
I have an action link that calls another controller and then passes two variables. It calls the controller correctly but then fails to pass the variables. What am I doing wrong? Relevant code:
@Html.Actionlink(“Tasks”,”viewTasks”,”ProjectTasks”,null,new { ProjectID = item.project_ID, ProjectName = item.ProjectName})
It returns a path of only localhost/ProjectTasks/ViewTasks rather than localhost/ProjectTasks/ViewTasks?ProjectID=123&ProjectName=SampleName
0 comments:
Post a Comment