<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>[How Do I:] Add Controls to an ASP.NET Web Page Programmatically</title><link>http://asp.net</link><pubDate>Wed, 01 Feb 2012 02:00:53 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:] Add Controls to an ASP.NET Web Page Programmatically</description><language>en</language><atom:link href="http://asp.net/rss/comments/33503" rel="self" type="application/rss+xml" /><item><title>Comment Posted by mcgmatt</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Tue, 29 Jul 2008 00:02:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005921</guid><description><![CDATA[ <p>The part about Page_Init is very important, and should have been covered first, followed by the rest of the video with all your work being done inside Page_Init. &#160;If anyone stops watching this video before the 30-minute mark, they&#39;ll think they should add controls in Page_Load, then they&#39;ll be confused when their controls disappear on postback.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mcgmatt.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by atarikg</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Sat, 04 Oct 2008 02:05:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005922</guid><description><![CDATA[ <p>thanks, this is one of the videos I wanna watch...</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/atarikg.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hlaiasp</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Thu, 13 Nov 2008 22:07:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005923</guid><description><![CDATA[ <p>I am using VC2005 and ASP.NET 2.0. I noticed you are using 3.5.</p> <p>I don&#39;t get intellisense for &quot;mainContent&quot; and &quot;newsItems&quot;. Is it possible to make it work in 2.0?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/hlaiasp.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Sun, 30 Nov 2008 14:16:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005924</guid><description><![CDATA[ <p>Thanks! J&#235;r&#235;j&#235;f !</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hamiltonbase</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Sat, 07 Feb 2009 11:49:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005925</guid><description><![CDATA[ <p>Question, I noticed on the placeholder.aspx page, you used</p> <p>Dim label as Label = New Label()</p> <p>as opposed to </p> <p>Dim Label as New Label()</p> <p>What&#39;s the difference between the two?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/hamiltonbase.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bohunt</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Fri, 13 Feb 2009 17:37:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005926</guid><description><![CDATA[ <p>Thanks for the video!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/bohunt.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Inferano</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Mon, 04 May 2009 12:51:34 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005927</guid><description><![CDATA[ <p>Good tutorial :) It would be great if you had added a small demo to save data inserted in the dynamics controls to some database.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Inferano.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by greatbear</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Fri, 18 Sep 2009 15:45:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005928</guid><description><![CDATA[ <p>agree with mcgmatt</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/greatbear.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by iturune</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Wed, 27 Jan 2010 16:40:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005929</guid><description><![CDATA[ <p>Hi Chris Pels</p><p>You have to change your video style!</p><p>We don&#39;t want to spend half an hour looking at you writing code, it&#39;s a waste of time!</p><p>If you cut out the time you just spend typing you could pass the same information to us in less than 10 minutes.</p><p></p><p>Here is my template for how I suggest you make your videos:</p><p>1. Introduce the subject</p><p>2. Tell people to download the code</p><p>3. Do a walk through of your code</p><p>4. Demonstrate how and why it works.</p><p></p><p>Chris Pels, you must wake up! Please realize that nobody benefits from watching you typing for half and hour. Just give us what we need!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/iturune.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pcastalian</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Thu, 30 Sep 2010 13:29:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010451</guid><description><![CDATA[ <p>Very good! </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/pcastalian.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kurniadi</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Tue, 01 Mar 2011 04:37:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012282</guid><description><![CDATA[ <p>It&#39;s all very good when we create new controls dynamically at the beginning of page creation, but how should we add new controls as a response to a button click event for example. The event handler happens after page load event. As we have learnt here from this video, the viewstate management of these new controls becomes problematic.</p><p>Anyone have a good suggestion how best to do this?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kurniadi.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by thoraxe</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Fri, 08 Jul 2011 05:39:43 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013728</guid><description><![CDATA[ <p>good little debugging to show control.count</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/thoraxe.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sowmya.s.prabhu</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-add-controls-to-an-aspnet-web-page-programmatically</link><pubDate>Wed, 01 Feb 2012 02:00:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014752</guid><description><![CDATA[ <p>Nice video. This really helps. The info about Pang_Init and about the page.controls.count was really useful.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/sowmya.s.prabhu.jpg?forceidenticon=false&amp;dt=635072331000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>