<?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: Extending PageData with some cool Html Helpers</title>
	<atom:link href="http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=extending-pagedata-with-some-cool-html-helpers</link>
	<description></description>
	<lastBuildDate>Sat, 31 Jul 2010 01:46:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Johan Kronberg</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-108</link>
		<dc:creator>Johan Kronberg</dc:creator>
		<pubDate>Wed, 09 Dec 2009 12:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-108</guid>
		<description>Might come in handy when creating a HTML mail or something like that. Otherwise I don&#039;t see the point. Always a bad idea to put markup in code behind IMHO.</description>
		<content:encoded><![CDATA[<p>Might come in handy when creating a HTML mail or something like that. Otherwise I don&#8217;t see the point. Always a bad idea to put markup in code behind IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Html Helper methods vs Server controls &#124; Frederik Vig - ASP.NET developer</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-104</link>
		<dc:creator>Html Helper methods vs Server controls &#124; Frederik Vig - ASP.NET developer</dc:creator>
		<pubDate>Tue, 08 Dec 2009 18:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-104</guid>
		<description>[...] received some very good comments on my post Extending PageData with some cool Html Helpers. Which made me want to explain my [...]</description>
		<content:encoded><![CDATA[<p>[...] received some very good comments on my post Extending PageData with some cool Html Helpers. Which made me want to explain my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-102</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 08 Dec 2009 11:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-102</guid>
		<description>Good, then we agree :-)

&quot;Not write a C# class that hides all Html that’s being rendered in an adavanced, not for everyone, CreateDefaultControls method.&quot;
 - or in an extension method like Frederik is doing here ;-)

/Steve</description>
		<content:encoded><![CDATA[<p>Good, then we agree <img src='http://www.frederikvig.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&#8220;Not write a C# class that hides all Html that’s being rendered in an adavanced, not for everyone, CreateDefaultControls method.&#8221;<br />
 &#8211; or in an extension method like Frederik is doing here <img src='http://www.frederikvig.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>/Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Sunna</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-100</link>
		<dc:creator>Peter Sunna</dc:creator>
		<pubDate>Tue, 08 Dec 2009 10:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-100</guid>
		<description>Sorry steve, I misread your comment about control adapters. You are of course right, they become useless with this approach. Control adapters are good for changing the output of existing web controls, which you indeed can&#039;t if you don&#039;t use web controls... Lots of nice improvements to EPiServer have been done in this way.

However, I never use control adapters on my own code due to the simple fact that I try to make sure that I can control all Html that is rendered from the &quot;markup&quot;. Or, put in another way, I prefer having the Html in user controls instead of web controls. I think the problem that control adapters are trying to solve is a problem that shouldn&#039;t exist (in a perfect developer world). The solution should be to provide another user control or something similar. Not write a C# class that hides all Html that&#039;s being rendered in an adavanced, not for everyone, CreateDefaultControls method.</description>
		<content:encoded><![CDATA[<p>Sorry steve, I misread your comment about control adapters. You are of course right, they become useless with this approach. Control adapters are good for changing the output of existing web controls, which you indeed can&#8217;t if you don&#8217;t use web controls&#8230; Lots of nice improvements to EPiServer have been done in this way.</p>
<p>However, I never use control adapters on my own code due to the simple fact that I try to make sure that I can control all Html that is rendered from the &#8220;markup&#8221;. Or, put in another way, I prefer having the Html in user controls instead of web controls. I think the problem that control adapters are trying to solve is a problem that shouldn&#8217;t exist (in a perfect developer world). The solution should be to provide another user control or something similar. Not write a C# class that hides all Html that&#8217;s being rendered in an adavanced, not for everyone, CreateDefaultControls method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-99</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 08 Dec 2009 08:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-99</guid>
		<description>Peter - much cleaner? You&#039;ve kidding, right? :-)

Control adapters are there to save your hiney after the fact (and they are advanced, not for everyone). They give you a way to fix things in existing controls. I&#039;ve used them as work arounds for tricky bugs or design shortcomings in EPiServer for an example. Hard coding your html from your C# code makes that impossible. 

Btw. this post is not about control adapters, my comment was that this code makes control adapters useless.</description>
		<content:encoded><![CDATA[<p>Peter &#8211; much cleaner? You&#8217;ve kidding, right? <img src='http://www.frederikvig.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Control adapters are there to save your hiney after the fact (and they are advanced, not for everyone). They give you a way to fix things in existing controls. I&#8217;ve used them as work arounds for tricky bugs or design shortcomings in EPiServer for an example. Hard coding your html from your C# code makes that impossible. </p>
<p>Btw. this post is not about control adapters, my comment was that this code makes control adapters useless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Sunna</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-98</link>
		<dc:creator>Peter Sunna</dc:creator>
		<pubDate>Tue, 08 Dec 2009 08:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-98</guid>
		<description>Personally I think control adapters are a bit too complex and I think this approach is much cleaner. Only working with web controls is nice in theory but the code usually ends up being harder to read and understand when trying to do things that&#039;s not out of the box (to speak sales language...) 

So, don&#039;t let steve stop you! :)</description>
		<content:encoded><![CDATA[<p>Personally I think control adapters are a bit too complex and I think this approach is much cleaner. Only working with web controls is nice in theory but the code usually ends up being harder to read and understand when trying to do things that&#8217;s not out of the box (to speak sales language&#8230;) </p>
<p>So, don&#8217;t let steve stop you! <img src='http://www.frederikvig.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Persson</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-97</link>
		<dc:creator>Jonas Persson</dc:creator>
		<pubDate>Tue, 08 Dec 2009 06:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-97</guid>
		<description>Interesting post!</description>
		<content:encoded><![CDATA[<p>Interesting post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Stenius</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-96</link>
		<dc:creator>Tom Stenius</dc:creator>
		<pubDate>Tue, 08 Dec 2009 02:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-96</guid>
		<description>I somewhat agree with Steve, though I find myself doing these kind of things every once and a while, to have them in the extension project will be great help for those occasions.

//Tom</description>
		<content:encoded><![CDATA[<p>I somewhat agree with Steve, though I find myself doing these kind of things every once and a while, to have them in the extension project will be great help for those occasions.</p>
<p>//Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik Vig</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-95</link>
		<dc:creator>Frederik Vig</dc:creator>
		<pubDate>Mon, 07 Dec 2009 23:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-95</guid>
		<description>Totally agree on the naming convention. Renamed it HtmlLink, which makes much more sense :).</description>
		<content:encoded><![CDATA[<p>Totally agree on the naming convention. Renamed it HtmlLink, which makes much more sense <img src='http://www.frederikvig.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.frederikvig.com/2009/12/extending-pagedata-with-some-cool-html-helpers/comment-page-1/#comment-94</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 07 Dec 2009 22:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=717#comment-94</guid>
		<description>Interesting post!

For MVC, I absolutely see the point of these Html Helpers, as they are quite important to actually render stuff consistently. For web forms, I&#039;m not sure. One of the key architectural features of web forms is separation of markup and logic, hence server controls.

What about control adapters with this approach? They won&#039;t be invoked for your code. We all create html markup directly from code now and then, and I always feel a little naughty when I do - as I shouldn&#039;t really be doing it. :-)

I love extensions, but I think I&#039;ll find a seat on the fence for this one.

Btw. I&#039;d try to group all methods of this kind together with a naming scheme, like HtmlLink, HtmlImage etc. (if you decide to create more that is. :-)

/Steve</description>
		<content:encoded><![CDATA[<p>Interesting post!</p>
<p>For MVC, I absolutely see the point of these Html Helpers, as they are quite important to actually render stuff consistently. For web forms, I&#8217;m not sure. One of the key architectural features of web forms is separation of markup and logic, hence server controls.</p>
<p>What about control adapters with this approach? They won&#8217;t be invoked for your code. We all create html markup directly from code now and then, and I always feel a little naughty when I do &#8211; as I shouldn&#8217;t really be doing it. <img src='http://www.frederikvig.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I love extensions, but I think I&#8217;ll find a seat on the fence for this one.</p>
<p>Btw. I&#8217;d try to group all methods of this kind together with a naming scheme, like HtmlLink, HtmlImage etc. (if you decide to create more that is. <img src='http://www.frederikvig.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>/Steve</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->