Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 06, 2012 11:29 PM by BrockAllen
Member
18 Points
56 Posts
Apr 06, 2012 11:27 PM|LINK
How I can convert this line to razor using Html.ActionLink. I want to access to the controller home and index method:
<li><a href="./new-page.html" class="active"><span class="l"> </span><span class="r"> </span><span class="t">Home</span></a></li>
All-Star
27434 Points
4891 Posts
MVP
Apr 06, 2012 11:29 PM|LINK
<li> <a href="@Url.Action("ActionName", "ControllerName")" class="active"> <span class="l"> </span><span class="r"> </span><span class="t">Home</span> </a> </li>
CADAVID
Member
18 Points
56 Posts
Convert to Razor MVC 3
Apr 06, 2012 11:27 PM|LINK
How I can convert this line to razor using Html.ActionLink. I want to access to the controller home and index method:
BrockAllen
All-Star
27434 Points
4891 Posts
MVP
Re: Convert to Razor MVC 3
Apr 06, 2012 11:29 PM|LINK
<li> <a href="@Url.Action("ActionName", "ControllerName")" class="active"> <span class="l"> </span><span class="r"> </span><span class="t">Home</span> </a> </li>DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/