Html.ActionLink发生了什么? 在 ASP.NET MVC 中?
我正在阅读所有有关使用 Html.ActionLink 方法和 lambda 表达式的博客。 我什至在这里看到了关于它的 ScottGu 演示: http://www.hanselman.com/silverlight/ScottGuAtAltNetConf /
这是一个博客: http://blog.wekeroad.com/blog/aspnet-mvc-preview-using-the-mvc-ui-helpers/
这是关于它的 ScottGu 博客:http://weblogs.asp.net/scottgu /archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx
》也可以写成:
<%= Html.ActionLink("Search Drinks", s => s.Results("Beverages", 2)) %>
"由于这是一种如此强大的编写 URL 路由的方法 - 特别是因为它自动支持重构工具 - 为什么它明显缺失或很难找到? 我查看了 Reflector 中的 System.Web.Mvc.Html.LinkExtensions,发现有很多 ActionLink(this HtmlHelper...) 扩展方法,但没有一个是通用的。
有人有帮助吗? 谢谢!!
I'm reading all of these blogs about using the Html.ActionLink method with lambda expressions. I even saw a ScottGu presentation about it here: http://www.hanselman.com/silverlight/ScottGuAtAltNetConf/
Here's a blog: http://blog.wekeroad.com/blog/aspnet-mvc-preview-using-the-mvc-ui-helpers/
Here's a ScottGu blog about it: http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx
"Can also be written as:
<%= Html.ActionLink("Search Drinks", s => s.Results("Beverages", 2)) %>
"
With this being such a powerful way to write URL routes - ESPECIALLY since it automatically supports refactoring tools - why is this either apparently missing or so hard to find? I looked at System.Web.Mvc.Html.LinkExtensions in Reflector and I see plenty of ActionLink(this HtmlHelper...) extension methods, but none that are generic.
Anyone have help? Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它被移至 Futures 程序集 (Microsoft.Web.Mvc.dll),因为据我了解,开发团队需要解决一些问题。
http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId= 24471
It got moved out to the Futures assembly (Microsoft.Web.Mvc.dll) as, from what I understand, there were some issues the dev team needed to sort through.
http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24471
它应该包含在 ASP.NET MVC Futures 中。
所以我想答案只是它没有完全进入第一个版本。
It's supposed to be included in ASP.NET MVC Futures.
So I guess the answer is just that it didn't quite make it into the first release.