开发者

ASP.NET mvc strong typed <A> tags

开发者 https://www.devze.com 2023-01-22 05:12 出处:网络
i\'m not sure, but didn\'t asp.ne开发者_如何学运维t mvc 2 provide a way to create strong typedtags?

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

精彩评论

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