MVC3 Razor TextBoxFor History清除 [英] MVC3 Razor TextBoxFor History Clear
本文介绍了MVC3 Razor TextBoxFor History清除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何清除TexBoxFor 的过去值?
Hi,
How do I clean for the past values of TexBoxFor?
推荐答案
如果我正确理解了这个问题,请考虑使用ModelState.Clear.例如,看一下此帖子: ^ ]
If I understood the question correctly, consider using ModelState.Clear. For example, have a look at this post: http://blogs.msdn.com/b/simonince/archive/2010/05/05/asp-net-mvc-s-html-helpers-render-the-wrong-value.aspx[^]
@ Html.TextBoxFor(model => model.desc_goods,新{ autocomplete ="off" ,onkeyup ="GetDescName(this.value);",样式="width:615px"}
@Html.TextBoxFor(model => model.desc_goods, new {autocomplete="off", onkeyup = "GetDescName(this.value);", style = "width: 615px" }
这篇关于MVC3 Razor TextBoxFor History清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文