假设这是我的观点...
<div class="control-group">
@Html.LabelFor(model => model.Title, new { @class = "control-label" })
@Html.ValidationMessageFor(model => model.Title, null, new { @class = "help-inline" })
<div class="controls">
@Html.EditorFor(model => model.Title)
</div>
</div>
如果出现错误我们如何隐藏Label
和显示validation message
代替Label
?
请就此提出建议...