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?

[Webinar] Streamline your web hosting managementRegister Today

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
All Courses

From novice to tech pro — start learning today.