Solved

Html.RenderAction in Visual Studio 2008 Express and MVC

Posted on 2010-09-17
3
665 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now