Hi I have declared an enum within the master page as
public enum AlertType
{
success = 1,
danger,
warning,
info,
primary,
secondary,
light,
dark
}
But when I tried to access one element of this enum inside my content page using string Name = this.Master.AlertType.danger.ToString();
it gives an error 'cannot reference a type through an expression'. What to do with this error? how can I access those values inside the enum here in my content page?