System.Web.UI.Design.HtmlControlDesigner.OnBehaviorAttached Method

Called when a behavior is associated with the element.

Syntax

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

Remarks

Note:

The HtmlControlDesigner.OnBehaviorAttached 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 HtmlControlDesigner.Initialize(System.ComponentModel.IComponent) method to manipulate the initial styles for the control at design time.

Requirements

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