System.Web.UI.Adapters 命名空间
包含控件适配器和页适配器的基类。 Contains the base classes for control adapters and page adapters. 可以使用这些适配器来重写页和控件的生命周期状态。 You can use these adapters to override the life-cycle states of pages and controls. 如果要修改这些控件的标记或行为,使其适应新的标记标准或特定浏览器,则这样的重写很有用。 This is useful if you want to modify a control's markup or behavior for new markup standards or for specific browsers.
类
| ControlAdapter |
自定义附加了适配器的派生控件的呈现,以修改特定浏览器的默认标记或行为,是所有控件适配器都可以继承的基类。Customizes rendering for the derived control to which the adapter is attached, to modify the default markup or behavior for specific browsers, and is the base class from which all control adapters inherit. |
| PageAdapter |
修改网页以适应特定的浏览器,并提供所有页面适配器可直接或间接继承的基类。Adapts a Web page for a specific browser and provides the base class from which all page adapters inherit, directly or indirectly. |
注解
System.Web.UI.WebControls.Adapters.WebControlAdapter 类从 ControlAdapter 类继承。The System.Web.UI.WebControls.Adapters.WebControlAdapter class inherits from the ControlAdapter class. System.Web.UI.WebControls.Adapters.DataBoundControlAdapter和 System.Web.UI.WebControls.Adapters.MenuAdapter 类继承自 System.Web.UI.WebControls.Adapters.WebControlAdapter 类。The System.Web.UI.WebControls.Adapters.DataBoundControlAdapter and System.Web.UI.WebControls.Adapters.MenuAdapter classes inherit from the System.Web.UI.WebControls.Adapters.WebControlAdapter class.