UpdatePanel Constructor ()
.NET Framework (current version)
Initializes a new instance of the UpdatePanel class.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
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.
.NET Framework
Available since 3.5
Available since 3.5
Show: