System.Web.UI (system.web.dll) | interface |
This interface is implemented by the
System.Web.UI.WebControls.WebControl and
System.Web.UI.HtmlControls.HtmlControl base
control classes. It allows you to programmatically access and modify
any of the attributes that are defined in the opening tag of a server
control. For example, you can use GetAttribute( )
to access an attribute by name and retrieve its string vlaue, and you
can use SetAttribute( ) to access an attribute by
name and supply a new string value that should be applied. This
interface is primarily of interest if you want to provide this
functionality in a custom control that does not derive from
System.Web.UI.WebControls.WebControl or
System.Web.UI.HtmlControls.HtmlControl.
public interface IAttributeAccessor {
// Public Instance Methods
public string GetAttribute(string key);
public void SetAttribute(string key, string value);
}
Implemented By
UserControl,
System.Web.UI.HtmlControls.HtmlControl,
System.Web.UI.MobileControls.{DeviceSpecificChoice,
MobileControl},
System.Web.UI.WebControls.{ListItem,
WebControl}
|