<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx</link><description>Part 2 of a multi-part series to detail just about everything you could ever want to know about how Dynamic Controls fit in with the framework.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Dynamically adding user controls, and then setting custom properties on those instances? | keyongtech</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#6854716</link><pubDate>Thu, 22 Jan 2009 08:27:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6854716</guid><dc:creator>Dynamically adding user controls, and then setting custom properties on those instances? | keyongtech</dc:creator><author>Dynamically adding user controls, and then setting custom properties on those instances? | keyongtech</author><description>&lt;p&gt;Pingback from &amp;nbsp;Dynamically adding user controls, and then setting custom properties on those instances? | keyongtech&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6854716" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#6588775</link><pubDate>Mon, 01 Sep 2008 18:17:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6588775</guid><dc:creator>Stephan</dc:creator><author>Stephan</author><description>&lt;p&gt;Hi, hope you still monitor the part, but I&amp;#39;m totally lost here, and that is also because I don&amp;#39;t understand all of it complety.&lt;/p&gt;
&lt;p&gt;In my case I made a small example which in total uses 4 nested UC&amp;#39;s and each UC has a textbox, button and checkbox. The UC&amp;#39;s are in a ItemTemplate of the repeater which is nested. Now on every level I the button adds a new control to the list using:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;protected void Button2_Click(object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ArrayList list = new ArrayList();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int index = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (RepeaterItem rptItem in rptFirst.Items)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebUserControl2 WebUserControl = rptItem.FindControl(&amp;quot;Item&amp;quot;) as WebUserControl2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (WebUserControl != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebUserControl2 ctrl = WebUserControl as WebUserControl2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list.Add(ctrl);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index++;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index++;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebUserControl2 _ctrl = LoadControl(&amp;quot;WebUserControl2.ascx&amp;quot;) as WebUserControl2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_ctrl.myText = &amp;quot;NEW ITEM&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list.Add(_ctrl);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Repeater1.DataSource = list;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Repeater1.DataBind();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Basically every uc has a procedure like this. Then when I also have, on every UC the following procedure:&lt;/p&gt;
&lt;p&gt; protected void Repeater1_ItemCreated(object sender, RepeaterItemEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!e.Item.ItemType.Equals(ListItemType.Separator))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Postback then e.item.DataItem is null&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (e.Item.DataItem != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebUserControl2 WebUserControl = e.Item.FindControl(&amp;quot;Item&amp;quot;) as WebUserControl2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebUserControl.myText = ((WebUserControl2)e.Item.DataItem).myText;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebUserControl.myCheckBox = ((WebUserControl2)e.Item.DataItem).myCheckBox;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;As you can see I actually bind a (Arry)list of UC to the repeater. &lt;/p&gt;
&lt;p&gt;I want to setup this small example without binding to a Db, that is why I use the ArrayList.&lt;/p&gt;
&lt;p&gt;No When I add a control it appears fine. On this control I can add 1..N Child UC and on the child control I can add 1..N UC (three levels deep). This all works fine, untill I press Add usercontrol button on the highest level. Then I still have the first UC I added and also the second new UC, but all the Child controls ( and their child controls) of the first added control are gone.&lt;/p&gt;
&lt;p&gt;All the controls have the procedures I have included above. &lt;/p&gt;
&lt;p&gt;How can I maintain the state of the child controls which are already there when I add a control on the highest level.&lt;/p&gt;
&lt;p&gt;I was told the problem is I recreate the controls in ItemCreated event, so it is actually a new control which, of course has no childcontrols. If that is true, what would be the solution for this?&lt;/p&gt;
&lt;p&gt;TIA Stephan&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6588775" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#6104048</link><pubDate>Wed, 16 Apr 2008 23:56:43 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6104048</guid><dc:creator>InfinitiesLoop</dc:creator><author>InfinitiesLoop</author><description>&lt;p&gt;Pablo -- have you tried setting the custom templates on the repeater from Init instead of Load? It doesnt appear there's any reason to delay it. Not sure if thats the problem but I'd do that anyway. Also, I'd hook the databinding event before adding the panel to the control collection. I dont think it matters in this case but as a practice I try to do everything I can to the control before adding it, unless there's a good reason to do it afterward. Let me know if either of those helps...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6104048" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#6103802</link><pubDate>Wed, 16 Apr 2008 22:08:22 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6103802</guid><dc:creator>Pablo</dc:creator><author>Pablo</author><description>&lt;p&gt;Question about ItemCommand firing...&lt;/p&gt;
&lt;p&gt;I have a repeater on a page which fires the ItemCommand and OnItemDatabound events as expected. &amp;nbsp;My problem happens when I ripped out the contents of &amp;lt;ItemTemplate&amp;gt; on the page&amp;#39;s repeater and put the contents into a class method InstantiateIn which inherits ITemplate. &amp;nbsp;The problem I&amp;#39;m having is that the ItemCommand won&amp;#39;t fire anymore. &amp;nbsp;My handler is still wired to the page in the Page_Init.&lt;/p&gt;
&lt;p&gt;Do you know what I could be doing wrong?&lt;/p&gt;
&lt;p&gt;code sample below:&lt;/p&gt;
&lt;p&gt;page markup&lt;/p&gt;
&lt;p&gt;==========&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- templates are generated from CustomItemTemplate.cs --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:Repeater ID=&amp;quot;rptFoo&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;	&amp;lt;ItemTemplate&amp;gt;&amp;lt;/ItemTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt;	&amp;lt;AlternatingItemTemplate&amp;gt;&amp;lt;/AlternatingItemTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/asp:Repeater&amp;gt;&lt;/p&gt;
&lt;p&gt;page code behind&lt;/p&gt;
&lt;p&gt;===============&lt;/p&gt;
&lt;p&gt;protected void Page_Init(object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	rptFoo.ItemCommand += new RepeaterCommandEventHandler(rptFoo_ItemCommand);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;protected void Page_Load(object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	CustomItemTemplate citItem = new CustomItemTemplate(ListItemType.Item);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;CustomItemTemplate citAlternating = new CustomItemTemplate(ListItemType.AlternatingItem);&lt;/p&gt;
&lt;p&gt;	rptFoo.ItemTemplate = citItem;&lt;/p&gt;
&lt;p&gt;	rptFoo.AlternatingItemTemplate = citAlternating;&lt;/p&gt;
&lt;p&gt;	if (!Page.IsPostBack)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;		BindData();&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;protected void rptFoo_ItemCommand(object source, RepeaterCommandEventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	 // won&amp;#39;t fire when implementing my class file.&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;CustomItemTemplate.cs&lt;/p&gt;
&lt;p&gt;===================&lt;/p&gt;
&lt;p&gt;public class CustomItemTemplate : ITemplate&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	Panel pan;&lt;/p&gt;
&lt;p&gt;	public ListItemType ItemType;&lt;/p&gt;
&lt;p&gt;	public CustomItemTemplate(ListItemType itemType)&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;		this.ItemType = itemType;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;	void ITemplate.InstantiateIn(Control container)&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;		pan = new Panel();&lt;/p&gt;
&lt;p&gt;		// if the parent control is a WebControl... &lt;/p&gt;
&lt;p&gt;		if ((container) is WebControl)&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			// get a strongly-typed reference to the containing item &lt;/p&gt;
&lt;p&gt;			WebControl webCtl = (WebControl)container;&lt;/p&gt;
&lt;p&gt;			// set the panel&amp;#39;s size so that it fully cover&amp;#39;s its containers &lt;/p&gt;
&lt;p&gt;			pan.Width = webCtl.Width;&lt;/p&gt;
&lt;p&gt;			pan.Height = webCtl.Height;&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;		switch (this.ItemType)&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			case ListItemType.Item:&lt;/p&gt;
&lt;p&gt;				pan.Controls.Add(new LiteralControl(&amp;quot;&amp;lt;tr align=\&amp;quot;left\&amp;quot; class=\&amp;quot;item\&amp;quot;&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt;				break;&lt;/p&gt;
&lt;p&gt;			case ListItemType.AlternatingItem:&lt;/p&gt;
&lt;p&gt;				pan.Controls.Add(new LiteralControl(&amp;quot;&amp;lt;tr align=\&amp;quot;left\&amp;quot; class=\&amp;quot;alternatingItem\&amp;quot;&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt;				break;&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;			pan.Controls.Add(new LiteralControl(&amp;quot;&amp;lt;td&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.Controls.Add(new HiddenField());&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.Controls.Add(new CheckBox());&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.Controls.Add(new LiteralControl(&amp;quot;&amp;lt;/td&amp;gt;&amp;lt;td width=\&amp;quot;325\&amp;quot;&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.Controls.Add(new LinkButton());&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.Controls.Add(new LiteralControl(&amp;quot;&amp;lt;br /&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.Controls.Add(new Label());&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.Controls.Add(new LiteralControl(&amp;quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt;			container.Controls.Add(pan);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pan.DataBinding += new EventHandler(pan_DataBinding);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;	private void pan_DataBinding(object sender, System.EventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;		fooProduct p;&lt;/p&gt;
&lt;p&gt;		if ((pan.NamingContainer) is RepeaterItem)&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			p = (fooProduct)(((RepeaterItem)pan.NamingContainer).DataItem);&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;		else&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			return;&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;		((LinkButton)pan.Controls[5]).ID = &amp;quot;linkBtnFoo&amp;quot;;&lt;/p&gt;
&lt;p&gt;		((LinkButton)pan.Controls[5]).Text = p.FooName);&lt;/p&gt;
&lt;p&gt;		((LinkButton)pan.Controls[5]).CommandName = &amp;quot;Go&amp;quot;;&lt;/p&gt;
&lt;p&gt;		((LinkButton)pan.Controls[5]).CommandArgument = p.fooId;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;TIA, Pablo&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6103802" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#5410407</link><pubDate>Thu, 06 Dec 2007 07:09:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5410407</guid><dc:creator>InfinitiesLoop</dc:creator><author>InfinitiesLoop</author><description>&lt;p&gt;Divya -- sure, you could either manually build up the html in the code behind with a foreach or you can embed that foreach directly into the page using the old asp style &amp;lt;% %&amp;gt; code blocks.&lt;/p&gt;
&lt;p&gt;You might also be interested in the ASP.NET MVC framework currently under development.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx"&gt;weblogs.asp.net/.../asp-net-mvc-framework-part-1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5410407" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#5410101</link><pubDate>Thu, 06 Dec 2007 05:56:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5410101</guid><dc:creator>Divya</dc:creator><author>Divya</author><description>&lt;p&gt; can we display data without using databound controls using datatable.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5410101" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#4511382</link><pubDate>Tue, 09 Oct 2007 17:06:31 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4511382</guid><dc:creator>InfinitiesLoop</dc:creator><author>InfinitiesLoop</author><description>&lt;p&gt;Ashok -- maybe this will help you.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/w70c655a.aspx"&gt;msdn2.microsoft.com/.../w70c655a.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;or perhaps this&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.codeproject.com/aspnet/aspnetusercontrol2.asp"&gt;www.codeproject.com/.../aspnetusercontrol2.asp&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4511382" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#4505918</link><pubDate>Tue, 09 Oct 2007 06:15:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4505918</guid><dc:creator>Ashok Kumar</dc:creator><author>Ashok Kumar</author><description>&lt;p&gt;thanks man, &lt;/p&gt;
&lt;p&gt;But Can you suggest me how can I typecast loaded control to the loaded control class from Control class to set the properties of this control. And I will be getting this control classname at runtime only.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;AKS.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.aksClassifieds.com"&gt;http://www.aksClassifieds.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://forums.aksclassifieds.com"&gt;forums.aksclassifieds.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://youtube.aksclassifieds.com"&gt;youtube.aksclassifieds.com&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4505918" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#4050724</link><pubDate>Sat, 22 Sep 2007 22:59:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4050724</guid><dc:creator>Josevader</dc:creator><author>Josevader</author><description>&lt;p&gt;This article is truly a great asset. &amp;nbsp;I&amp;#39;ve searched all over for information that is sound, succinct, and easy to understand. &amp;nbsp;You have achieved all this. &amp;nbsp;Thanks for the enlightenment.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4050724" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 2)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/30/TRULY-Understanding-Dynamic-Controls-_2800_Part-2_2900_.aspx#3852900</link><pubDate>Thu, 13 Sep 2007 18:54:59 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3852900</guid><dc:creator>InfinitiesLoop</dc:creator><author>InfinitiesLoop</author><description>&lt;p&gt;nyimalay -- You'll have to provide me some code so I can understand what is wrong. Sounds like you probably have a significant amount of code with database lookups and all that. Try to narrow it down as compact as possible while still reproducing the problem.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3852900" width="1" height="1"&gt;</description></item></channel></rss>