Main Page

  Previous Section Next Section


System.Web.UI.WebControls (system.web.dll)class

This class represents a "placeholder" control, which is a container used to store controls that may be added to a page dynamically at some point in its processing. Placeholders prevent an HTML page from "collapsing." For example, if you create a text box control and set the TextBox.Visible property to False, no HTML will be rendered for the control. This could cause the layout of the page to change unexpectedly, particularly with tables. Placeholders avert this problem. To add a control to a placeholder, use Add( ). Note that placeholders, unlike most web controls, derive directly from System.Web.UI.Control, not from WebControl.

public class PlaceHolder : System.Web.UI.Control {
// Public Constructors
   public PlaceHolder( );


System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) PlaceHolder

      Previous Section Next Section