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 LenkaPosted Sep 4, 2013, 6:27 AM
i am new in Mvc but i think this solution will help you.
you can add this globally in web.config
NAGARAJU TAMADAPosted Sep 4, 2013, 7:55 AM
Please find other solution
Thanks & Regards
Nagaraju T
Sanjeeb LenkaPosted Sep 4, 2013, 7:11 AM
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 TAMADAPosted Sep 4, 2013, 7:04 AM
The namespace Your mentioned is already in my Web.config file.
Please give another Solution
Thanks & Regards
NagaRaju T