ASP.Net MVC 2.0预览版本提供了如下帮助
Html.EditorFor(c => c.propertyname)
如果属性名为 string,则上面的代码呈现一个文本框。
What if I want to pass in MaxLength and Size properties to the text box or my own css class property?
Do I need to create one template for each size and length combinations in my application? If so, that doesn't make the default templates that usable.