Defines methods used by ASP.NET server controls to provide programmatic access to any attribute declared in the opening tag of a server control.

See Also: IAttributeAccessor Members


public interface IAttributeAccessor


If you author a custom server control that inherits from the System.Web.UI.WebControls.WebControl, System.Web.UI.HtmlControls.HtmlControl, or System.Web.UI.WebControls.ListItem class, the .NET Framework automatically provides programmatic access to attributes because each of these classes implement the System.Web.UI.IAttributeAccessor interface.

If you author a custom server control that does not inherit from one of these classes and plan to allow programmatic access to attributes that do not correspond with the control's strongly typed properties, be sure to implement the System.Web.UI.IAttributeAccessor interface.


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