mvc action link error message

Posted by user281180 on Stack Overflow See other posts from Stack Overflow or by user281180
Published on 2010-04-16T09:06:49Z Indexed on 2010/04/16 9:13 UTC
Read the original article Hit count: 415

Filed under:

What is wrong with this statement?

<%= Html.ActionLink("Assign Users", new { Controller="Users", Action="Index", Query="Index", Page=2932 })%>

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

© Stack Overflow or respective owner

Related posts about asp.net-mvc