PowerWEB LiveControls for ASP.NET
LiveWrapper Class
Members  See Also  Send comments on this topic.
Dart.LiveControls Namespace : LiveWrapper Class



A container used to wrap 3rd party controls so they can be updated from a callback.

Syntax

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  

Remarks

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.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.PlaceHolder
         Dart.LiveControls.LiveWrapper

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.0.2
© 2012 Dart Communications. All Rights Reserved.