System.Web.UI.INamingContainer

Identifies a container control that creates a new ID namespace within a System.Web.UI.Page object's control hierarchy. This is a marker interface only.

See Also: INamingContainer Members

Syntax

public interface INamingContainer

Remarks

Any control that implements this interface creates a new namespace in which all child control ID attributes are guaranteed to be unique within an entire application. The marker provided by this interface allows unique naming of the dynamically generated server control instances within the Web server controls that support data binding. These controls include the System.Web.UI.WebControls.Repeater, System.Web.UI.WebControls.DataGrid, System.Web.UI.WebControls.DataList, System.Web.UI.WebControls.CheckBoxList, System.Web.UI.WebControls.ChangePassword, System.Web.UI.WebControls.LoginView, System.Web.UI.WebControls.Menu, System.Web.UI.WebControls.SiteMapNodeItem, and System.Web.UI.WebControls.RadioButtonList controls.

When you develop templated controls, you should implement this interface to avoid naming conflicts on a page. For more information, see ASP.NET Control Designers Overview.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0