AttributeCollection.Remove Method (String)
.NET Framework (current version)
Removes an attribute from a server control's AttributeCollection object.
Assembly: System.Web (in System.Web.dll)
Parameters
- key
-
Type:
System.String
The name of the attribute to remove.
If the AttributeCollection object does not contain an attribute that has the specified key, the collection remains unchanged. No exception is thrown.
The following example shows how to programmatically remove an attribute from an HTML server control's AttributeCollection object.
.NET Framework
Available since 1.1
Available since 1.1
Show: