我需要在我的控制文件访问practiceid财产,请帮助我如何可以访问此访问Html.ActionLink财产
<a href="" practiceid="df3d4335671b4fa880aebc2a6fc56869">Corporate</a>
<a href="" practiceid="26f4c9f5444b485c9d974f75361fa8ca">Tax & Employee Comp/Exec Benefits</a>
<a href="" practiceid="40b0a3a0b2744fafae0475756693c37f">Business Finance & Restructuring</a>
监管
我CSHTML代码如下:
@foreach (var facetData in Model.SearchResultItems.Facets.Select((x) => new { Item = x.Key, Index = x.Value }))
{
<tr>
<td>
@Html.ActionLink(@facetData.Index, "Search","Search", new { practiceid = @facetData.Item })
</td>
</tr>
}
和控制器的代码如下:
public ActionResult Search(string practiceid)
{
}
但我没有得到任何在我的practiceid参数中的任何东西。
将此空值作为参数添加后没有成功 – user2450960