System.Web.UI.Design.HtmlControlDesigner.OnBehaviorDetaching Method

Called when a behavior disassociates from the element.

Syntax

[System.Obsolete("Use ControlDesigner.Tag instead")]
protected virtual void OnBehaviorDetaching ()

Remarks

Note:

The HtmlControlDesigner.OnBehaviorDetaching method is obsolete. Use the IControlDesignerTag.SetAttribute(string, string) and IControlDesignerTag.GetAttribute(string) methods on the ControlDesigner.Tag property to map properties to styles. Use the ContainerControlDesigner.GetDesignTimeCssAttributes method on the System.Web.UI.Design.ContainerControlDesigner class to set styles for the control at design time. Override the erload:System.Web.UI.Design.HtmlControlDesigner.Dispose method for the control designer to perform actions before the designer object is released.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0