This documentation is archived and is not being maintained.

UpdateProgress::ProgressTemplate Property

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

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

[BrowsableAttribute(false)]
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
public:
property ITemplate^ ProgressTemplate {
	ITemplate^ get ();
	void set (ITemplate^ value);
}
<asp:UpdateProgress>
	<ProgressTemplate>ITemplate</ProgressTemplate>
</asp:UpdateProgress>

Property Value

Type: System.Web.UI::ITemplate
An ITemplate instance that defines the content of the UpdateProgress control. The default is nullptr.

The template must be defined. Otherwise, an exception is thrown during the UpdateProgress control's Init event. You can specify the ProgressTemplate property declaratively 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. You specify markup in the InstantiateIn method, and then set the ProgressTemplate property of the dynamically created UpdateProgress control to a new instance of the custom template. If you create UpdateProgress controls dynamically, do so during or before the PreRender event of the page. If you create the UpdateProgress control later in the page life cycle, progress is not displayed.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: