Export (0) Print
Expand All

UpdatePanel Constructor

Initializes a new instance of the UpdatePanel class.

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

new : unit -> UpdatePanel

Use this constructor to initialize a new instance of the UpdatePanel class. To dynamically add an UpdatePanel control to a page, create a new UpdatePanel instance and then add child controls to the control object that is exposed by the instance's ContentTemplateContainer property.

The following example shows how to dynamically create an UpdatePanel control and add it to a page. When you click the button inside the UpdatePanel control, the message is refreshed with the date and time. Child controls are added by using the ContentTemplateContainer property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5
© 2015 Microsoft