AspNetCore.Docs/aspnet/web-forms/videos/how-do-i/how-do-i-add-controls-to-an...

1.5 KiB

uid title author description ms.author manager ms.date ms.topic ms.assetid ms.technology ms.prod msc.legacyurl msc.type
web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically [How Do I:] Add Controls to an ASP.NET Web Page Programmatically | Microsoft Docs rick-anderson In this video Chris Pels will show how to create an ASP.NET server control programmatically at runtime and add it to a page. First, learn the basic concept o... aspnetcontent wpickett 07/24/2008 article 1576e0a4-73ca-4816-bc09-20ae393a66f9 dotnet-webforms .net-framework /web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically video

[How Do I:] Add Controls to an ASP.NET Web Page Programmatically

by Chris Pels

In this video Chris Pels will show how to create an ASP.NET server control programmatically at runtime and add it to a page. First, learn the basic concept of adding a control to a page programmatically. Then, the concept of a "container" control is examined which is necessary for adding a new control programmatically at runtime. Next, learn considerations for nesting programmatically added controls, and how creating separate methods can compartmentalize the process to make it more maintainable. In addition, learn considerations for managing view state when adding controls dynamically.

▶ Watch video (33 minutes)