Html.RenderAction in Visual Studio 2008 Express and MVC

Hi There

I am having problems accessing this Member of the Html property.

<div id="categories">
   <%=Html.RenderAction("Menu", "Nav");%>
</div>

I am getting a "RenderAction is not a member of Html"

Any ideas why I can access this member.

Thanks
Stanton
Stanton_RouxAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
greigtechConnect With a Mentor Commented:
Remove the '=' sign!  it should just be:
<% Html.RenderAction("Menu", "Nav");%>
0
 
Stanton_RouxAuthor Commented:
The code above is in my master page.

My othere views uses Html from the mvc htmlhelper namespace.
But in my master page its using just the html namesapce
0
 
Stanton_RouxAuthor Commented:
sorry stupid mistake did not include
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>

at the top of the page.Thanmks for you help anyway have some points
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.