Html.RenderAction<MyController> - does not have type parameters

Posted by Ami on Stack Overflow See other posts from Stack Overflow or by Ami
Published on 2010-03-15T14:54:02Z Indexed on 2010/03/15 16:09 UTC
Read the original article Hit count: 503

Filed under:
|

Hi,

I'm trying to use RenderAction in the following way:

'<% Html.RenderAction( x => x.ControllerAction() ); %>'

as seen here:

http://devlicio.us/blogs/derik_whittaker/archive/2008/11/24/renderpartial-vs-renderaction.aspx

and here:

http://eduncan911.com/blog/html-renderaction-for-asp-net-mvc-1-0.aspx

but I keep getting an error about the method not having type parameters. also in MSDN I see there is no documentation for it, and also checking the MVC source code I can't find anything. I'm using the latest ASP.Net MVC (2.0 RTM)

is this feature no longer available? how can I use it?

thanks.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about renderaction