[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

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
0
Stanton_Roux
Asked:
Stanton_Roux
  • 2
1 Solution
 
greigtechCommented:
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now