TextBoxFor rendering to HTML with prefix on the ID attribute
- by msi
I have an ASPNET MVC 2 project. When I use
<%= Html.TextBoxFor(model => model.Login) %>
the TexBoxFor will render as
<input id="Login" name="Login" type="text" value="" />
Field in the model is
[Required(ErrorMessage = "")]
[DisplayName("Login")]
public string Login { get; set; }
Can I made id and name attribute with some prefix? Like
<input id="prefixLogin" name="prefixLogin" type="text" value="" />
Thanks to all.