开发者

ASP.NET mvc strong typed <A> tags

i'm not sure, but didn't asp.ne开发者_如何学运维t mvc 2 provide a way to create strong typed tags?

Michel


ASP.NET MVC Futures contains a strongly typed action link. It's implimentation is a bit wacky though (you can read more about that here). Personally I would go with the T4 solution.


Using the T4MVC Templates, you can use view code like this (ASPX engine)

<%: Html.ActionLink("About Us", MVC.Home.About()) %>

More here: http://mvccontrib.codeplex.com/wikipage?title=T4MVC

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜