if i have created an attribute:
public class TableAttribute : Attribute {
public string HeaderText { get; set; }
}
which i apply to a few of my properties in a class
public class Person {
[Table(HeaderText="F. Name")]
public string FirstName { get; set; }
}
in my view i have a list of people which i am displaying in a table.. how can i retrieve the value of HeaderText to use as my column headers? Something like...
<th><%:HeaderText%></th>