UserControl.Attributes Property
.NET Framework (current version)
Gets a collection of all attribute name and value pairs declared in the user control tag within the .aspx file.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System.Web.UI.AttributeCollectionAn AttributeCollection object that contains all the name and value pairs declared in the user control tag.
The following code example uses the user control's Attributes property to access the Message attribute declared in the custom control tag that instantiated the user control on the page that contains it.
.NET Framework
Available since 1.1
Available since 1.1
Show: