mvc2 html.valuefor,MVC @Html.EditorFor缓存Model的值是bug吧?小心入坑
最近遇到一个ASP.NET mvc的问题。需求是这样的:在新增页面新增成功后,页面输入的控件全部清空,并输出添加成功文字。前台页面:后台代码:public ActionResult Add(){var m = new MPart();return View(m);}[HttpPost]public ActionResult Add([Bind(Exclude = "OID")]MPart mode...