【发布时间】:2009-05-14 13:03:47
【问题描述】:
是否可以使用 HTML 帮助类生成跨应用程序操作链接?
我有以下(都是独立的 VS2008 项目):
http://主网站/ http://mainwebsite/应用程序我想在 /mainwebsite/application/ 项目中生成一个链接到 /mainwebsite/。这可能吗?还是我应该硬编码一个超链接?
补充:
我的问题反之亦然。因此在 /mainwebsite/ TO /mainwebsite/application/ 中生成一个链接。通过将应用程序名称模拟为控制器名称,我已经设法做到了:
<% =Html.ActionLink("ApplicationName","",new With {.Controller = "application" }) %>
【问题讨论】:
标签: asp.net-mvc html-helper actionlink routevalues