强类型的ActionLink在Asp.Net MVC 2? [英] Strongly Typed ActionLink In Asp.Net MVC 2?
问题描述
我刚刚下载VS.NET 2010 RC并创建了一个新的MVC项目。这似乎是强类型ActionLinks不在此版本?难道这始终会是一个期货的事情?还是我失去了一些东西?
<%= Html.ActionLink<&HomeController的GT;(X => x.Index(),家)%GT;
没有没有ActionLink的&LT;>见ScottGu <一个href=\"http://weblogs.asp.net/scottgu/archive/2010/01/10/asp-net-mvc-2-strongly-typed-html-helpers.aspx\"相对=nofollow>博客((
出于性能方面的原因。
回复:ASP.NET MVC 2:强类型HTML
助手周二2010年1月12日2时32分
AM由ScottGu
@Anthony,
但对强类型ActionLinks什么?
块引用>
块引用>
块引用>
块引用>
块引用>
块引用>
块引用>
我们不添加内置运行
佣工的 - 但大卫Ebbo有
创造了一个很好的工具VS附加上
创建强类型的辅助方法,你可以
用途:ASPNET codeplex.com / Wiki页面
希望这有助于
斯科特
块引用>
I just downloaded VS.NET 2010 RC and created a new MVC project. It would seem that strongly typed ActionLinks are not in this release? Is this always going to be a "futures" thing? Or am I missing something?
<%=Html.ActionLink<HomeController>(x => x.Index(),"Home")%>
解决方案No there is no ActionLink<> see ScottGu blog (( For performance reason.
re: ASP.NET MVC 2: Strongly Typed Html Helpers Tuesday, January 12, 2010 2:32 AM by ScottGu
@Anthony,
but what about strongly typed ActionLinks?
We aren't adding built-in runtime helpers for this - but David Ebbo has created a nice VS tooling add-on that creates strongly-typed helpers you can use: aspnet.codeplex.com/wikipage
Hope this helps,
Scott
这篇关于强类型的ActionLink在Asp.Net MVC 2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!