Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

ProgressTemplate Property

Gets or sets the template that defines the content of the UpdateProgress control.

Syntax

CSharp

[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
public ITemplate ProgressTemplate { get; set; }

VisualBasic

<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<BrowsableAttribute(False)> _
Public Property ProgressTemplate As ITemplate

ManagedCPlusPlus

[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
[BrowsableAttribute(false)]
public:
ITemplate^ ProgressTemplate {
	ITemplate^ get ();
	void set (ITemplate^ value);
}

JSharp

/** @property */
/** @property */

Value

Return Value

An ITemplate instance that defines the content of the UpdateProgress control. The default is null.

Remarks

The template must be defined or an exception is thrown during the UpdateProgress control's Init event. Declaratively, you specify the ProgressTemplate property by adding markup to the <ProgressTemplate> element. If there is no markup in the <ProgressTemplate> element, nothing is displayed for the UpdateProgress control.

If you are creating UpdateProgress controls dynamically, you can create a custom template that inherits from the ITemplate control, specify markup in the InstantiateIn(Control) method, and then set the ProgressTemplate property of your dynamically created UpdateProgress control to a new instance of the custom template. If you create UpdateProgress controls dynamically, do so in or before the PreRender event of the page. Creating the UpdateProgress control later in the page life cycle will result in the progress not being displayed.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)