mvc 跳转到另一个页面 Controller带参数

 跳转到链接

   // 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>

 

posted @ 2013-07-26 09:17  虫虫飞520  阅读(7273)  评论(0编辑  收藏  举报