[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Html.RenderAction in Visual Studio 2008 Express and MVC

Posted on 2010-09-17
3
Medium Priority
?
676 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 2000 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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

650 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