I want to be able to determine if my DataListItem type is of type RadioButton in C# code behind.
Is this possible?
Alternatively if it is not type DropDownList that would also work.
Isn't there a way to some kind of check such as
if(item.ItemType.Equals(HtmlInputRadioButton)){
//
}
item.ItemType is an enum. Type will never be HtmlInputRadioButton
Instead, the code should be like this -