<?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"
	>
<channel>
	<title>Comments on: Web standards with ASP.NET</title>
	<atom:link href="http://friendlybit.com/html/web-standards-with-aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://friendlybit.com/html/web-standards-with-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>
	<pubDate>Sun, 12 Oct 2008 00:38:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Scott</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30798</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sun, 06 Jul 2008 14:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30798</guid>
		<description>This is exactly what kept me from jumping into ASP.NET; I'd like to see more info on how to write good ASP.NET code.</description>
		<content:encoded><![CDATA[<p>This is exactly what kept me from jumping into ASP.NET; I&#8217;d like to see more info on how to write good ASP.NET code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Cyment</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30692</link>
		<dc:creator>Alan Cyment</dc:creator>
		<pubDate>Mon, 02 Jun 2008 14:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30692</guid>
		<description>You might want to give Aggiorno a try next time you want to try and make an ASP.NET site standard. It can make an entire site XHTML 1.0 Transitional compliant with a few clicks, including a wizard that will take you over all the images that lack an ALT description and a very very smart tag closing agent. It's currently in beta phase and beta is not time limited in any sense, so you might as well get a decent version for free: http://www.aggiorno.com/download.aspx 

Cheers,
Alan</description>
		<content:encoded><![CDATA[<p>You might want to give Aggiorno a try next time you want to try and make an ASP.NET site standard. It can make an entire site XHTML 1.0 Transitional compliant with a few clicks, including a wizard that will take you over all the images that lack an ALT description and a very very smart tag closing agent. It&#8217;s currently in beta phase and beta is not time limited in any sense, so you might as well get a decent version for free: <a href="http://www.aggiorno.com/download.aspx" rel="nofollow">http://www.aggiorno.com/download.aspx</a> </p>
<p>Cheers,<br />
Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna Kolesnik</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30672</link>
		<dc:creator>Anna Kolesnik</dc:creator>
		<pubDate>Fri, 30 May 2008 13:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30672</guid>
		<description>I like to follow standards. I'm using all w3c validators from strict markup to link checkers, and  I'm always glad to find something new .. 
thank you</description>
		<content:encoded><![CDATA[<p>I like to follow standards. I&#8217;m using all w3c validators from strict markup to link checkers, and  I&#8217;m always glad to find something new ..<br />
thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Stenström</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30600</link>
		<dc:creator>Emil Stenström</dc:creator>
		<pubDate>Sun, 18 May 2008 10:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30600</guid>
		<description>@Martin S, buckley: Great comments! I really need to expand the comments area, you are adding invaluable data to my posts :)</description>
		<content:encoded><![CDATA[<p>@Martin S, buckley: Great comments! I really need to expand the comments area, you are adding invaluable data to my posts :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buckley</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30598</link>
		<dc:creator>buckley</dc:creator>
		<pubDate>Sat, 17 May 2008 23:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30598</guid>
		<description>http://www.west-wind.com/WebLog/posts/127340.aspx

"Maybe the most important feature of this control is that like the Repeater control it provides much more control over the rendering process at the cost of more markup code in the page."</description>
		<content:encoded><![CDATA[<p><a href="http://www.west-wind.com/WebLog/posts/127340.aspx" rel="nofollow">http://www.west-wind.com/WebLog/posts/127340.aspx</a></p>
<p>&#8220;Maybe the most important feature of this control is that like the Repeater control it provides much more control over the rendering process at the cost of more markup code in the page.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin S.</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30594</link>
		<dc:creator>Martin S.</dc:creator>
		<pubDate>Sat, 17 May 2008 13:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30594</guid>
		<description>Indeed a good blog post. I agree with most of the stuff written here. A lot of things can be written on this subject, but I narrow it down to some more tips:

- CSS adapters for better semantics: http://www.asp.net/CssAdapters/

- How to control adapters: http://www.singingeels.com/Articles/How_To_Control_Adapters.aspx

Btw, use Literal instead of Label when you need to output text from codebehind, unless it should be  - then you can use the AssociatedControlId attribute. And PlaceHolder is always better than a Panel. The Panel creates a wrapping div, which PlaceHolder does not.</description>
		<content:encoded><![CDATA[<p>Indeed a good blog post. I agree with most of the stuff written here. A lot of things can be written on this subject, but I narrow it down to some more tips:</p>
<p>- CSS adapters for better semantics: <a href="http://www.asp.net/CssAdapters/" rel="nofollow">http://www.asp.net/CssAdapters/</a></p>
<p>- How to control adapters: <a href="http://www.singingeels.com/Articles/How_To_Control_Adapters.aspx" rel="nofollow">http://www.singingeels.com/Articles/How_To_Control_Adapters.aspx</a></p>
<p>Btw, use Literal instead of Label when you need to output text from codebehind, unless it should be  - then you can use the AssociatedControlId attribute. And PlaceHolder is always better than a Panel. The Panel creates a wrapping div, which PlaceHolder does not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Stenström</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30592</link>
		<dc:creator>Emil Stenström</dc:creator>
		<pubDate>Sat, 17 May 2008 12:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30592</guid>
		<description>@Nick Dunn: Great comment Nick! The only reason I don't like asp:label is because it really isn't needed. Writing a label by hand is just as easy, even though you have to get the ClientID of the control then for the for attribute.

The same with asp:literal, you could use &#60;%= text %&#62; instead if you wanted.

No matter what, I don't think that distinction is too important. As long as you know what you're doing and care about the HTML.</description>
		<content:encoded><![CDATA[<p>@Nick Dunn: Great comment Nick! The only reason I don&#8217;t like asp:label is because it really isn&#8217;t needed. Writing a label by hand is just as easy, even though you have to get the ClientID of the control then for the for attribute.</p>
<p>The same with asp:literal, you could use &lt;%= text %&gt; instead if you wanted.</p>
<p>No matter what, I don&#8217;t think that distinction is too important. As long as you know what you&#8217;re doing and care about the HTML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Dunn</title>
		<link>http://friendlybit.com/html/web-standards-with-aspnet/#comment-30591</link>
		<dc:creator>Nick Dunn</dc:creator>
		<pubDate>Sat, 17 May 2008 12:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/?p=157#comment-30591</guid>
		<description>I agree wholeheartedly with your comments here. I'll add a few more points:

- Set the xHtmlConformanceMode to "strict" in the Web.config. This way, even if you do use server controls which generate a lot of HTML, it will at least be valid.

- Don't write off the ASP:Label control. It's main purpose is for form labels and it achieves this very well. Using an ASP:Label and ASP:TextBox pair will generate the same HTML markup I would write by hand anyway (except the auto-generated ID/name attributes).

The ASP:Label control becomes confusing when no AssociatedControlId is set, as it outputs a SPAN rather than a LABEL to the HTML.

The two most powerful server controls for the standards-aware developer are the ASP:Repeater (as you mentioned) and the ASP:Literal. The latter is simply an empty placeholder into which you can stuff any text or HTML.

Avoid the Validation server controls like the plague, if you care about markup. Adding a validator will add an onsubmit() handler to your form, and force the client to download a ton of JavaScript.

ASP.NET is incredibly powerful and indeed web-standards compliant. But only in the right hands :-)</description>
		<content:encoded><![CDATA[<p>I agree wholeheartedly with your comments here. I&#8217;ll add a few more points:</p>
<p>- Set the xHtmlConformanceMode to &#8220;strict&#8221; in the Web.config. This way, even if you do use server controls which generate a lot of HTML, it will at least be valid.</p>
<p>- Don&#8217;t write off the ASP:Label control. It&#8217;s main purpose is for form labels and it achieves this very well. Using an ASP:Label and ASP:TextBox pair will generate the same HTML markup I would write by hand anyway (except the auto-generated ID/name attributes).</p>
<p>The ASP:Label control becomes confusing when no AssociatedControlId is set, as it outputs a SPAN rather than a LABEL to the HTML.</p>
<p>The two most powerful server controls for the standards-aware developer are the ASP:Repeater (as you mentioned) and the ASP:Literal. The latter is simply an empty placeholder into which you can stuff any text or HTML.</p>
<p>Avoid the Validation server controls like the plague, if you care about markup. Adding a validator will add an onsubmit() handler to your form, and force the client to download a ton of JavaScript.</p>
<p>ASP.NET is incredibly powerful and indeed web-standards compliant. But only in the right hands :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
