TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
NAGARAJU TAMADA
NA
205
285.7k
ActionLink Error
Sep 4 2013 5:54 AM
Hi all,
I just lost the whole detailed post because I forgot to add a subject line so I am going to make this short and sweet. I added a template to my new MVC 3 project copying new code to my new layout from the old base _layout.cshtml. The website runs as expected but now I an error because the new layout is not recognizing the below code:
<li>
@Html.ActionLink("Home", "Index", "Home")
</li>
<li>
@Html.ActionLink("About", "About", "Home")
</li>
ActionLink
from above is not recognized and it is prompting or asking if I am missing a directive or using statement. Is there any documetation on what needs to be added to call ActionLink. THe other layout does not have anything that I see that calls ActionLink as the ways C# uses the using to call objects.
'System.Web.Mvc.HtmlHelper<object>'
does
not
conta
in
a definition
for
'ActionLink'
and
no
extension method
'ActionLink'
accepting a first argument of type
'System.Web.Mvc.HtmlHelper<object>'
could be found
(
are you missing a
using
directive
or
an assembly reference?)
Thanks & Regards
NagaRaju T
Reply
Answers (
4
)
Set hyperlink to the primary key column in grid view.
ASP Net Validator