在 HomeController 的 Details 视图中,我想创建一个指向 MiscController 上的 Email 视图的链接。另外,我需要在 QueryString 中添加一个项目。
我想创建一个类似于以下内容的链接:
<a href="http://www.blah.com/misc/SendMail?id=6">
<font size="1">Report problems</font>
</a>
我尝试了以下方法:
<% Html.ActionLink("<font size=\"1\">Report</font>", "SendMail", "Misc", Model.ImageID, new object()); %>
它没有返回任何链接。我错过了什么?