<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dynamically Adding User and Web Controls</title>
	<atom:link href="http://accidentaltechnologist.com/asp-net/dynamically-adding-user-and-web-controls/feed/" rel="self" type="application/rss+xml" />
	<link>http://accidentaltechnologist.com/asp-net/dynamically-adding-user-and-web-controls/</link>
	<description>Musings about Technology, Software Design and Development</description>
	<lastBuildDate>Wed, 16 May 2012 17:59:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Paulo</title>
		<link>http://accidentaltechnologist.com/asp-net/dynamically-adding-user-and-web-controls/#comment-6</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Sun, 26 Nov 2006 12:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/~rbazinet/?p=21#comment-6</guid>
		<description>&lt;p&gt;I have added dynamically users controls but when i trigger a event like onclick the user control dont responds, why? i tried re-assigning the event but it also doesnt work&lt;/p&gt;
&lt;p&gt;foreach(string strSubProjectCode in arrSubProjectsCodes){&lt;/p&gt;
&lt;p&gt;	objInfoViewTree[i] = (InfoViewTree)this.LoadControl(&quot;Info.ascx&quot;);&lt;/p&gt;
&lt;p&gt;	objInfoViewTree[i].Visible = true;							&lt;/p&gt;
&lt;p&gt;	objInfoViewTree[i].EnableViewState = true;							TableCell objCell = new TableCell();								objCell.Controls.Add(objInfoViewTree[i]);&lt;/p&gt;
&lt;p&gt;	objRow.Cells.Add(objCell);&lt;/p&gt;
&lt;p&gt;	tblTreeContainer.Rows.Add(objRow);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have added dynamically users controls but when i trigger a event like onclick the user control dont responds, why? i tried re-assigning the event but it also doesnt work</p>
<p>foreach(string strSubProjectCode in arrSubProjectsCodes){</p>
<p>	objInfoViewTree[i] = (InfoViewTree)this.LoadControl(&#8220;Info.ascx&#8221;);</p>
<p>	objInfoViewTree[i].Visible = true;							</p>
<p>	objInfoViewTree[i].EnableViewState = true;							TableCell objCell = new TableCell();								objCell.Controls.Add(objInfoViewTree[i]);</p>
<p>	objRow.Cells.Add(objCell);</p>
<p>	tblTreeContainer.Rows.Add(objRow);</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://accidentaltechnologist.com/asp-net/dynamically-adding-user-and-web-controls/#comment-1121</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Sun, 26 Nov 2006 12:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/~rbazinet/?p=21#comment-1121</guid>
		<description>I have added dynamically users controls but when i trigger a event like onclick the user control dont responds, why? i tried re-assigning the event but it also doesnt work
foreach(string strSubProjectCode in arrSubProjectsCodes){
	objInfoViewTree[i] = (InfoViewTree)this.LoadControl(&quot;Info.ascx&quot;);
	objInfoViewTree[i].Visible = true;							
	objInfoViewTree[i].EnableViewState = true;							TableCell objCell = new TableCell();								objCell.Controls.Add(objInfoViewTree[i]);
	objRow.Cells.Add(objCell);
	tblTreeContainer.Rows.Add(objRow);
}</description>
		<content:encoded><![CDATA[<p>I have added dynamically users controls but when i trigger a event like onclick the user control dont responds, why? i tried re-assigning the event but it also doesnt work<br />
foreach(string strSubProjectCode in arrSubProjectsCodes){<br />
	objInfoViewTree[i] = (InfoViewTree)this.LoadControl(&#8220;Info.ascx&#8221;);<br />
	objInfoViewTree[i].Visible = true;<br />
	objInfoViewTree[i].EnableViewState = true;							TableCell objCell = new TableCell();								objCell.Controls.Add(objInfoViewTree[i]);<br />
	objRow.Cells.Add(objCell);<br />
	tblTreeContainer.Rows.Add(objRow);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

