MVC中給TextBoxFor設置默認值和屬性

例如:(特別注意在設置初始值的時候 Value 中的V要大寫)spa

@Html.TextBoxFor(model => model.CustomerCode, new {  Value=" 默認",@style="width:240px;height:35px;",id="UserCode", @class="search_key_content"})
相關文章
相關標籤/搜索