?
Solved

Html.RenderAction in Visual Studio 2008 Express and MVC

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

770 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