MVC5 Lost value in Textbox after Submit
问题 I would like to clarify one thing about MVC5 Razor Views. I was told that I don't have to use HTML Helpers (@Html.EditorFor, @Html.TextBoxFor) in my razor views and it will still work. Controller Code [HttpPost] public ActionResult Create(Models.TestObj obj) { ViewBag.TestStr = string.Format("You typed: {0} {1}", obj.FirstName, obj.LastName); return View(obj); } Razor View @using (Html.BeginForm()) { <div> @Html.EditorFor(model => model.FirstName, new { htmlAttributes = new { @class = "form