我正在尝试在 WebGrid 的条件列中连接 2 Html.ActionLink。类似的东西:
@grid.GetHtml(columns:grid.Columns(
grid.Column("AccountNumber"),
grid.Column("ContractNumber"),
grid.Column("DisplayName"),
grid.Column("IsFinalized"," ",format:(item) => (item.IsFinalized == true)
?@<text> @Html.ActionLink("Edit", "Edit", new { accountId = item.AccountNumber}) | @Html.ActionLink("Details", "Details", new { accountId = item.AccountNumber }) </text>
:@<text> @Html.ActionLink("Validate", "Validate", new { accountId = item.AccountNumber} | @Html.ActionLink("Details", "Details", new { accountId = item.AccountNumber }))</text>)
))