Hi everyone,
I need help creating html helper that replaces all this code:
<div class="col-xs-4 form-group">
@*@Html.LabelWithHelpTextFor(m => m.DataTitle.blabla)
@Html.EditorFor(m => m.DataTitle.blabla)*@
<label for="blabla" class="control-label">blabla</label>
@Html.TextBoxFor(m => m.DataTitle.blabla, new { @class = "form-control", autocomplete = "off" })
@Html.ValidationMessageFor(m => m.DataTitle.blabla)
</div>
I want this helper to get class of the div tag(col-xs-4 form-group), model data(m => m.DataTitle.blabla), class of textbox and label(form-control) and than display label and text box appropriately. Is this possible?