Visual Basic (Declaration) | |
---|---|
<LicenseProviderAttribute(System.ComponentModel.LicenseProvider)> Public Class LiveWrapper Inherits System.Web.UI.WebControls.PlaceHolder Implements ILiveControl |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As LiveWrapper |
C# | |
---|---|
[LicenseProviderAttribute(System.ComponentModel.LicenseProvider)] public class LiveWrapper : System.Web.UI.WebControls.PlaceHolder, ILiveControl |
C++/CLI | |
---|---|
[LicenseProviderAttribute(System.ComponentModel.LicenseProvider)] public ref class LiveWrapper : public System.Web.UI.WebControls.PlaceHolder, ILiveControl |
Often, 3rd party controls use complex or nonstandard rendering techniques that require special handling to change their appearance in a callback. Controls of this type can be placed within a LiveWrapper control, which performs this special handling.
To use the LiveWrapper with a 3rd party control, first drag an instance of the 3rd party onto the webform. After configuring the control using its design support, drag an instance of LiveWrapper onto the webform. Finally, access the HTML tag view, and modify the tags so the LiveWrapper tags are completely enclosing ALL of the 3rd party control's tags. For example:
<cc1:LiveWrapper id="LiveWrapper1" runat="server"> <asp:AnyControl id="AnyControl1" style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP: 88px" runat="server" Text="AnyControl" Width="153px" Height="40px"> </asp:AnyControl> </cc1:LiveWrapper>
It should be noted that the control may not render correctly in design time, but it should be rendered correctly at runtime.
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.PlaceHolder
Dart.LiveControls.LiveWrapper
Target Platforms: Microsoft .NET Framework 2.0