AttributeCollection.Item Property (String)

 

Gets or sets a specified attribute value for a server control.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

member Item : 
        key:string -> string with get, set

Parameters

key
Type: System.String

The location of the attribute in the collection.

Property Value

Type: System.String

The attribute value.

You can add an attribute to or retrieve one from an ASP.NET server control that uses this property.

The following example shows how to set a dynamic HTML onblur attribute to run an ECMAScript (JavaScript) command when a TextBox Web server control loses focus.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: