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
精彩评论