I have some user controls and some web controls on my page. To read the Visibility property of the each control using reflection I wrote below line :
Object v;
if (control.GetType().GetProperty("Visible") != null)
v = control.GetType().GetProperty("Visible").GetValue(control, null);
but how can I read the value of Style["display"] attribute of each control using reflection?
Thanks in advance.