This documentation is archived and is not being maintained.

ControlDesigner.DesignTimeHtmlRequiresLoadComplete Property

Gets a value indicating whether the designer must have completed loading before the design-time HTML can be used.

[Visual Basic]
Public Overridable ReadOnly Property _
   DesignTimeHtmlRequiresLoadComplete As Boolean
public virtual bool DesignTimeHtmlRequiresLoadComplete {get;}
public: __property virtual bool
public function get DesignTimeHtmlRequiresLoadComplete() : Boolean;

Property Value

true if loading must be complete before the design-time HTML can be accessed; otherwise, false.


The default implementation returns false.


[Visual Basic] The following code example overrides the DesignTimeHtmlRequiresLoadComplete property in a data-bound control designer. If the DataSource.Length property of the control designer is not set to zero, the DesignTimeHtmlRequiresLoadComplete returns true, and the designer must be completely loaded before the design-time HTML can be accessed.

[Visual Basic] 
' Override the DesignTimeHtmlRequiresLoadComplete property.      
Public Overrides ReadOnly Property DesignTimeHtmlRequiresLoadComplete() As Boolean
      ' If there is a data source, look it up in the container
      ' and require the document to be loaded completely.
      Return DataSource.Length <> 0
   End Get
End Property

[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ControlDesigner Class | ControlDesigner Members | System.Web.UI.Design Namespace