I\'m currently building the Admin back-end for a website in ASP.NET MVC.
In an ASP.NET MVC application, I\'ve started using the \'EditorFor\' helper method like so:<
Have been using this to generate id(with model prefix). Skip the .Replace() part if you want the name attribute.
<%=Html.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldId(String.Empty).Replace(".", HtmlHelper.IdAttributeDotReplacement) %>