<?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: Templated User Controls in ASP.NET</title> <atom:link href="http://friendlybit.com/other/templated-user-controls-in-aspnet/feed/" rel="self" type="application/rss+xml" /><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/</link> <description>You have found Friendly Bit, a web development blog. I focus on client side technologies like CSS, HTML and Javascript. You find my articles below and categories to the right.</description> <lastBuildDate>Thu, 09 Sep 2010 11:05:29 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31787</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Fri, 12 Jun 2009 07:41:25 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31787</guid> <description>@Ken Platt: You&#039;re welcome!</description> <content:encoded><![CDATA[<p>@Ken Platt: You&#8217;re welcome!</p> ]]></content:encoded> </item> <item><title>By: Ken Platt</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31785</link> <dc:creator>Ken Platt</dc:creator> <pubDate>Wed, 10 Jun 2009 21:21:50 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31785</guid> <description>I just want to say thanks... I&#039;ve been doing template controls for a while now and every once in a while I&#039;ve gotten weird errors around the designer file not liking it. Your simple example allowed me to see what I was doing wrong. This is going to save me a TON of time!</description> <content:encoded><![CDATA[<p>I just want to say thanks&#8230; I&#8217;ve been doing template controls for a while now and every once in a while I&#8217;ve gotten weird errors around the designer file not liking it. Your simple example allowed me to see what I was doing wrong. This is going to save me a TON of time!</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31208</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Thu, 27 Nov 2008 09:09:00 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31208</guid> <description>@Mårten Berg: Yes, that&#039;s why the example includes TemplateInstance.Single, which means that you can reference controls inside directly. It&#039;s a neat trick that works well for all the simple cases (like this one). If you start looping you need to throw in some FindControls and remove the TemplateInstance.Single. Thanks for your comment!</description> <content:encoded><![CDATA[<p>@Mårten Berg: Yes, that&#8217;s why the example includes TemplateInstance.Single, which means that you can reference controls inside directly. It&#8217;s a neat trick that works well for all the simple cases (like this one). If you start looping you need to throw in some FindControls and remove the TemplateInstance.Single. Thanks for your comment!</p> ]]></content:encoded> </item> <item><title>By: Mårten Berg</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31207</link> <dc:creator>Mårten Berg</dc:creator> <pubDate>Thu, 27 Nov 2008 08:13:25 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31207</guid> <description>Thanks for the tip, really neat. However, due to a bug in ASP.NET there may be problems in the designer and code-behind using some nested web controls within the templated control. If you experience this, you need to explicitly point out the nested control in a slightly odd way:&lt;code&gt;
...
&lt;/code&gt;
and in code-behind:
&lt;code&gt;
Repeater myNestedRepeater = (Repeater)MyBox.FindControl(&quot;PlaceHolder1&quot;).Controls[0];
&lt;/code&gt;Hope it helps somebody.</description> <content:encoded><![CDATA[<p>Thanks for the tip, really neat. However, due to a bug in ASP.NET there may be problems in the designer and code-behind using some nested web controls within the templated control. If you experience this, you need to explicitly point out the nested control in a slightly odd way:</p><p><code></p><p> ...</p><p></code><br
/> and in code-behind:<br
/> <code><br
/> Repeater myNestedRepeater = (Repeater)MyBox.FindControl("PlaceHolder1").Controls[0];<br
/> </code></p><p>Hope it helps somebody.</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31191</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Wed, 19 Nov 2008 19:37:24 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31191</guid> <description>@Jonatan: Thanks!@Steve: Ah, interesting, I&#039;ve never even heard of that trick. One more thing, did you find the article because it had &quot;EPiServer&quot; in it? You work with them right?@Anders: Well, not yet. I&#039;m still struggling to get customers to not build for IE6, rounded corners with CSS is far, far, far away. (I&#039;ll tell you when I switch, I promise :)</description> <content:encoded><![CDATA[<p>@Jonatan: Thanks!</p><p>@Steve: Ah, interesting, I&#8217;ve never even heard of that trick. One more thing, did you find the article because it had &#8220;EPiServer&#8221; in it? You work with them right?</p><p>@Anders: Well, not yet. I&#8217;m still struggling to get customers to not build for IE6, rounded corners with CSS is far, far, far away. (I&#8217;ll tell you when I switch, I promise :)</p> ]]></content:encoded> </item> <item><title>By: Anders</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31190</link> <dc:creator>Anders</dc:creator> <pubDate>Wed, 19 Nov 2008 18:38:17 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31190</guid> <description>When do you think we should take the next step and start using css3 for purposes such as rounded corners? Browser support is not that good at the moment, i know, but don&#039;t you too think it sucks to insert those extra divs just to get the corner effect?</description> <content:encoded><![CDATA[<p>When do you think we should take the next step and start using css3 for purposes such as rounded corners? Browser support is not that good at the moment, i know, but don&#8217;t you too think it sucks to insert those extra divs just to get the corner effect?</p> ]]></content:encoded> </item> <item><title>By: Steve Celius</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31189</link> <dc:creator>Steve Celius</dc:creator> <pubDate>Wed, 19 Nov 2008 13:59:27 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31189</guid> <description>Nice trick. I usually do this with controls inheriting from asp:panel, which lets me do this inline. I render html from code behind though (building my own control tree, not pasting markup).Your example is much cleaner, the surrounding markup can always be changed without having to recompile (when IE8 comes out for an example :-)/Steve</description> <content:encoded><![CDATA[<p>Nice trick. I usually do this with controls inheriting from asp:panel, which lets me do this inline. I render html from code behind though (building my own control tree, not pasting markup).</p><p>Your example is much cleaner, the surrounding markup can always be changed without having to recompile (when IE8 comes out for an example :-)</p><p>/Steve</p> ]]></content:encoded> </item> <item><title>By: Jonatan Larsson</title><link>http://friendlybit.com/other/templated-user-controls-in-aspnet/#comment-31187</link> <dc:creator>Jonatan Larsson</dc:creator> <pubDate>Tue, 18 Nov 2008 18:23:26 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=323#comment-31187</guid> <description>Great article! This was news for me, and will come in handy in future projects.</description> <content:encoded><![CDATA[<p>Great article! This was news for me, and will come in handy in future projects.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 8/24 queries in 0.038 seconds using disk
Object Caching 290/295 objects using disk

Served from: friendlybit.com @ 2010-09-09 11:19:59 -->