ASP.NET MVC GetFullHtmlFieldId not returing valid id
I have taken a look at but it did not help me out GetFullHtmlFieldId returning incorrect id attribute value ASP.NET GetFullHtmlFieldId not returning valid id Problem Basically I have the following problem: I have a custom validation attribute which requires to get the fieldId of the control public class MyValidationAttribute : ValidationAttribute, IClientValidatable { //...... Collapsed code public IEnumerable<ModelClientValidationRule> GetClientValidationRules(ModelMetadata metadata, ControllerContext context) { ViewContext vwContext = context as ViewContext; var fieldId = vwContext.ViewData