UpdateProgress.ProgressTemplate Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the template that defines the content of the UpdateProgress control.
public:
property System::Web::UI::ITemplate ^ ProgressTemplate { System::Web::UI::ITemplate ^ get(); void set(System::Web::UI::ITemplate ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.ITemplate ProgressTemplate { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.ProgressTemplate : System.Web.UI.ITemplate with get, set
Public Property ProgressTemplate As ITemplate
An ITemplate instance that defines the content of the UpdateProgress control. The default is null
.
- Attributes
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.
Produkt | Versjoner |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: