I have an asp mvc 3 project When I use
@Html.TextBoxFor(model => model.Name)
the TexBoxFor render as
<input id="Name" name="Name" type="text" value="" />
my model is "UserModel" :
[DisplayName("Name")]
public string Name{ get; set; }
Is there a way to add to the name of the model as prefix in the id? maybe some attribute?
I want that the text box will render as
<input id="UserName" name="UserName" type="text" value="" />