I want to make my ASPX page to look different based on some Object property. Assuming Customer is the object, I want to make Customer.aspx file layout different for both CustomerType.Regular and CustomerType.Vip values of the Customer.Type property.
Theoretically it is possible for me to have two asp:Repeater controls with different Id's, but with the same OnItemDataBound method and this way I will be working with the same control names set, because the repeaters are implementing INamingContainer, and I will have the irrelevant one invisible. Feeding the appropriate repeater with only one Customer object will do the trick.
My question is: Is there another way for achieving the goal? I want to do it by the book!