Is it possible to change the field name generated by @Html.TextBoxFor
? I did not find anything in Portuguese related to that.
I tried something like:
@Html.TextBoxFor(x => x.ToDate, new { name = "to" })
If I do for example, for ID or Style:
@Html.TextBoxFor(x => x.ToDate, new { style = "display: none;", id = "to" })
It works for both of the above, but not for the name.
Then is there a way to change the name
generated by default by @Html.TextBoxFor
?