Files
mono/mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs
T
Gonzalo Paniagua Javier 4668e31142 2003-08-20 Gonzalo Paniagua Javier <[email protected]>
* ControlCollection.cs:
	* EmptyControlCollection.cs: create a minimum ArrayList for this.

	* BaseParser.cs: added setter for BaseVirtualDir.

	* Page.cs: fixed message when restoring view state fails.
	* UserControlParser.cs: set the BaseVirtualDirectory to handle the case
	when a relative path to the control is given. Fixes bug #47685.

svn path=/trunk/mcs/; revision=17424
2003-08-20 01:24:43 +00:00

31 lines
595 B
C#
Executable File

//
// System.Web.UI.EmptyControlCollection.cs
//
// Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
namespace System.Web.UI {
public class EmptyControlCollection : ControlCollection
{
public EmptyControlCollection (Control owner)
: base (owner, true)
{
}
public override void Add (Control child)
{
throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
}
public override void AddAt (int index, Control child)
{
throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
}
}
}