using MvcApplication1.Models; @model MvcApplication1.Models.UserInfoModel @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/Admin.cshtml"; } <h2>Index</h2>...
一、Html.BeginForm <form>标签 //视图代码@using (Html.BeginForm("search", "home", FormMethod.Get),new { target="_black",@ }) { <input type="text" value="" /> }//生成的...