跳转到链接
// Controller
public ActionResult Detail(int MessageId)
{
BLL.ZQSDWEDBLL bll = new BLL.ZQSDWEDBLL();
List<MessageDetail> MessageDetailList = bll.getMessaggeMenu(MessageId); //获得主页下面所有消息
return PartialView(MessageDetailList);
}
//view
<li>@Html.ActionLink(item.MessageTitle, "Detail", "Product", new { MessageId = item.MessageId }, null) </li>