"
 
 
 
ASP.NET (snapshot 2017) Microsoft documentation and samples

[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)





Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnet/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>