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:
@Html.ActionLink("Home", "Index", "Home") @Html.ActionLink("About", "About", "Home")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 does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.Mvc.HtmlHelper could be found (are you missing a using directive or an assembly reference?)
Thanks & Regards
NagaRaju T
Loading


Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 4, 2013, 2:27 AM EDT
i am new in Mvc but i think this solution will help you.
you can add this globally in web.config
NAGARAJU TAMADA134 reputationPosted Sep 4, 2013, 3:04 AM EDT
The namespace Your mentioned is already in my Web.config file.
Please give another Solution
Thanks & Regards
NagaRaju T
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 4, 2013, 3:11 AM EDT
refer to this link
http://iamdotnetcrazy.blogspot.in/2010/10/how-to-solve-systemwebmvchtmlhelper.html
http://stackoverflow.com/questions/4710853/using-mvc-htmlhelper-extensions-from-razor-declarative-views
NAGARAJU TAMADA134 reputationPosted Sep 4, 2013, 3:55 AM EDT
Please find other solution
Thanks & Regards
Nagaraju T