Is it possible to initialize a Control's List<T> property in markup?
问题 Let's say we have the following: public enum RenderBehaviors { A, B, C, } public class MyControl : Control { public List<RenderBehaviors> Behaviors { get; set; } protected override void Render(HtmlTextWriter writer) { // output different markup based on behaviors that are set } } Is it possible to initialize the Behaviors property in the ASPX/ASCX markup? i.e.: <ns:MyControl runat="server" ID="ctl1" Behaviors="A,B,C" /> Subclassing is not an option in this case (the actual intent of the