--- uid: web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically title: "[How Do I:] Add Controls to an ASP.NET Web Page Programmatically | Microsoft Docs" author: rick-anderson description: "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..." ms.author: aspnetcontent manager: wpickett ms.date: 07/24/2008 ms.topic: article ms.assetid: 1576e0a4-73ca-4816-bc09-20ae393a66f9 ms.technology: dotnet-webforms ms.prod: .net-framework msc.legacyurl: /web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically msc.type: video --- [How Do I:] Add Controls to an ASP.NET Web Page Programmatically ==================== by [Chris Pels](https://twitter.com/chrispels) 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)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/how-do-i-add-controls-to-an-aspnet-web-page-programmatically)