What is wrong with this statement?
I`m having the following error:
Error 10 ‘System.Web.Mvc.HtmlHelper’ does not contain a definition for ‘ActionLink’ and the best extension method overload ‘System.Web.Mvc.Html.LinkExtensions.ActionLink(System.Web.Mvc.HtmlHelper, string, string)’ has some invalid arguments c:\Code\MvcUI\Views\Project\Index.aspx 17 22 MvcUI
Error 11 Argument ‘3’: cannot convert from ‘AnonymousType#1’ to ‘string’ c:\Code\MvcUI\Views\Project\Index.aspx 17 54 MvcUI
From your previous comment
This is what you need:
Your Index method may look like this:
Which means your url may read like so:
You could also make id a parameter in your action method. So your Index method definition may look like this in your controller:
and your url would look like this