I know that it is possible to define custom tags in ASP.NET with User Controls. But as far as I know you can only add attributes to these controls. I would like to be able to em
It is certainly possible. For your example the classes would look like:
[ParseChildren(true)]
class MyGraph : WebControl {
List _colors = new List();
[PersistenceMode(PersistenceMode.InnerProperty)]
public List Colors {
get { return _colors; }
}
}
class Color {
public string Value { get; set; }
}
And the actual markup would be: