Is it possible to control the name attribute of say a text boxt when using TextBoxFor?
this code in the view
@Html.TextBoxFor(m => m.SearchParams
TextBoxFor doesn't allow the name attribute to be set. This workaround:
TextBoxFor
@Html.EditorFor(m => m.UserName, null, "user_name")
outputs: