so let’s say I have a registration model and I have:
[Display(Name = "")]
public string SecretQuestion { get; set; }
How can I load the [Display(Name = "")] dynamically so that the display name is actually the secret question. I am getting a question from the database and I need this to be dynamic.
Load your data into a ViewBag and use the ViewBag to populate the label.