IAttributeAccessor

IAttributeAccessor

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}



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net