2 // System.Web.UI.EmptyControlCollection.cs
4 // Duncan Mak (duncan@ximian.com)
11 namespace System.Web.UI {
13 public class EmptyControlCollection : ControlCollection
15 public EmptyControlCollection (Control owner)
20 public override void Add (Control child)
22 throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
25 public override void AddAt (int index, Control child)
27 throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");