我在 .cshtml 中的操作链接是这样的:
@Html.ActionLink("Reply", "Post_Reply", new { item.ID, item.Post_ID, item.Reply_ID })
我在控制器中的方法是这样的:
[Authorize]
public ActionResult Post_Reply(int PostId=0, int Id = 0, int ReplyId = 0)
{
post posts = new post();
posts.ID = Id;
return View(posts);
}
但只有 item.ID 的值通过了,其他两个值 item.Post_ID 和 item.Reply_ID 没有通过..谁能指导我..谢谢..