MVC 后台获取参数
controllers 中我这么写
[HttpGet] public ActionResult Indexs(int id) { string aa = Request["userName"]; string bb = aa + id.ToString(); return View(); } <%: Html.TextBox("userName")%> <%: Html.ActionLink("测试", "Indexs", new { id=1 })%>