我有一個強類型模型,它從數據庫'startAmount'中獲取顯示名稱,我確信它是應該做的,但是如何覆蓋它?強類型模型命名覆蓋
我希望它顯示爲'起始金額'。
<p>
@Html.LabelFor(m => m.IPACS_kpiHistory.startAmount)
<span class="field">
@Html.TextBoxFor(m => m.IPACS_kpiHistory.startAmount)
</span>
</p>
我看過所有的方法選項,它們都沒有顯示文本覆蓋選項?
你可能要考慮在模型特性的顯示屬性。 http://stackoverflow.com/questions/12735757/mvc-4-data-annotations-display-attribute – Jerry
@Jarek感謝使用數據註釋幫助我解決它。謝謝。 –