ASP.NET MVC3 HtmlPasswordFor how to make it not reset after post methods
问题 Essentially I have a HtmlPasswordFor(m => EmployeeID), I have a button called "Go". Once I hit the Go textbox, I actually do not want the password to disappear on the or have the field password to be cleared. How would I do this? BEFORE AFTER I do not want the my employeeid to reset. I want to keep the passwords in ****'s, but I'll need the password on my next post call. Controller [HttpGet] public ActionResult MainForm() { var model = new VTViewModel(); return View(model); } [HttpPost]