强类型的ActionLink用asp.net mvc的测试版? [英] Strongly typed actionlink with asp.net mvc beta?

查看:131
本文介绍了强类型的ActionLink用asp.net mvc的测试版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经是能够做到在preVIEW以下3

I used to be able to do the following in Preview 3

<%=Html.BuildUrlFromExpression<AController>(c => c.AnAction(par1, par2)%>

我应该如何与MVC测试版强类型的方法来创建网址吗?
到目前为止,我发现的唯一的事情就是

How am I supposed to create urls in a strongly typed way with the MVC Beta? The only thing so far I have found is

<%= Html.ActionLink("aName", "ActionName", "ControllerName")%>

这不是强类型的偏离方向。

This is not strongly typed off course.

推荐答案

您需要的ASP.NET MVC Beta版期货,这是一个单独的下载

You need the ASP.NET MVC Beta Futures, which is a separate download

ASP.NET MVC Beta版期货

然后你原来的code的工作如前。

then your original code will work as before.

看到这个职位得到它的工作:
<一href=\"http://stackoverflow.com/questions/211493/aspnet-mvc-beta-1-where-is-htmlrenderpartial#211524\">SO张贴失踪扩展

See this post for getting it working: SO post on missing extensions

这篇关于强类型的ActionLink用asp.net mvc的测试版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆