* Page.cs: Don't tell the response to cache anymore. This is done
[mono.git] / mcs / class / System.Web / System.Web.UI / EmptyControlCollection.cs
1 //
2 // System.Web.UI.EmptyControlCollection.cs
3 //
4 // Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc.
7 //
8
9 using System;
10
11 namespace System.Web.UI {
12
13         public class EmptyControlCollection : ControlCollection
14         {
15                 public EmptyControlCollection (Control owner)
16                         : base (owner, true)
17                 {
18                 }
19                 
20                 public override void Add (Control child)
21                 {
22                         throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
23                 }
24
25                 public override void AddAt (int index, Control child)
26                 {
27                         throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
28                 }
29         }
30 }