Solved

Html.RenderAction in Visual Studio 2008 Express and MVC

Posted on 2010-09-17
3
671 Views
Last Modified: 2012-05-10
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
Comment
Question by:Stanton_Roux
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
greigtech earned 500 total points
ID: 33700391
Remove the '=' sign!  it should just be:
<% Html.RenderAction("Menu", "Nav");%>
0
 

Author Comment

by:Stanton_Roux
ID: 33700429
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
 

Author Closing Comment

by:Stanton_Roux
ID: 33700461
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question