Html.RenderAction- 没有类型参数

发布于 2024-08-25 08:48:55 字数 733 浏览 4 评论 0原文

我尝试按以下方式使用 RenderAction:

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

如下所示:

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

和此处:

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

但我不断收到有关该方法没有类型参数的错误。同样在 MSDN 中,我看到没有相关文档,并且还检查了 MVC 源代码,但我找不到任何内容。 我正在使用最新的 ASP.Net MVC (2.0 RTM)

此功能不再可用吗?我该如何使用它?

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

累赘 2024-09-01 08:48:55

ASP.Net MVC 2 RTM 中没有接受表达式的 Html.RenderAction 重载。所以不,它不可用。

There are no Html.RenderAction overload which accepts an expression in the ASP.Net MVC 2 RTM. So no, it's not available.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文