<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DotBert &#187; html</title>
	<atom:link href="http://dotbert.loedeman.nl/category/html/feed" rel="self" type="application/rss+xml" />
	<link>http://dotbert.loedeman.nl</link>
	<description>.NET thoughts by Bert Loedeman</description>
	<lastBuildDate>Wed, 19 Oct 2011 07:57:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to insert blank rule (&lt;br /&gt;) from C# code</title>
		<link>http://dotbert.loedeman.nl/how-to-insert-blank-rule-from-c-code</link>
		<comments>http://dotbert.loedeman.nl/how-to-insert-blank-rule-from-c-code#comments</comments>
		<pubDate>Thu, 13 Aug 2009 07:37:26 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web user control]]></category>

		<guid isPermaLink="false">http://dotbert.loedeman.nl/?p=102</guid>
		<description><![CDATA[Once in a while I have to develop custom user controls that require blank rules in them. Almost always I think again: &#8216;I should have blogged about it, would have saved me lots of time searching&#8217; &#8230; Well, no more, because here it is&#8230; Many people using blank rules in C# code, use the following [...]]]></description>
			<content:encoded><![CDATA[<p>Once in a while I have to develop custom user controls that require blank rules in them. Almost always I think again: &#8216;I should have blogged about it, would have saved me lots of time searching&#8217; <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_smile.gif' alt="How to insert blank rule (&lt;br /&gt;) from C# code icon smile" class='wp-smiley' title="How to insert blank rule (&lt;br /&gt;) from C# code" />  &#8230; Well, no more, because here it is&#8230;</p>
<p>Many people using blank rules in C# code, use the following commands:</p>
<pre class="brush: csharp; title: ; notranslate">
var brControl1 = new HtmlGenericControl { InnerHtml = &quot;&lt;br /&gt;&quot; };
var brControl2 = new HtmlGenericControl(&quot;br&quot;);
</pre>
<p>However, brControl1 also prints a &lt;span&gt; tag and brControl2 prints &lt;br&gt;&lt;/br&gt;. Both options are not really useful. You should take notice of the fact that the HtmlGenericControl is not meant to be used for anything else than span, body, div and font (what is designed for &#8216;as the word goes&#8217;).  The way to go when printing a blank rule is:</p>
<pre class="brush: csharp; title: ; notranslate">
var brControl3 = new LiteralControl(&quot;&lt;br /&gt;&quot;);
</pre>
<p>This actually prints exactly what you would like it to print, namely &lt;br /&gt;. Hope this helps you too <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_smile.gif' alt="How to insert blank rule (&lt;br /&gt;) from C# code icon smile" class='wp-smiley' title="How to insert blank rule (&lt;br /&gt;) from C# code" />  ! BTW, if you are using the HtmlTextWriter class, you can also use the WriteBreak() function if you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/how-to-insert-blank-rule-from-c-code/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML rounded corners without images and div nesting</title>
		<link>http://dotbert.loedeman.nl/html-rounded-corners-without-images-and-div-nesting</link>
		<comments>http://dotbert.loedeman.nl/html-rounded-corners-without-images-and-div-nesting#comments</comments>
		<pubDate>Wed, 18 Feb 2009 10:53:14 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[dd_roundies]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[nested div]]></category>
		<category><![CDATA[rounded corners]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://dotbert.loedeman.nl/?p=64</guid>
		<description><![CDATA[Yesterday I had troubles to get an ASP.NET control to work with rounded corners in various browsers. IE and Firefox operate slightly different from each other, and to get it working (using ASP.NET themes) was quite a pain in the ass. Besides, it is not cool to have the obligation to change 4 images per [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I had troubles to get an ASP.NET control to work with rounded corners in various browsers. IE and Firefox operate slightly different from each other, and to get it working (using ASP.NET themes) was quite a pain in the ass. Besides, it is not cool to have the obligation to change 4 images per control every time the design team has the bright idea to change website colors for some very good reason.</p>
<p>Luckily, at the end of the day, I discovered <a href="http://www.dillerdesign.com/experiment/DD_roundies/">DD_roundies</a>, a Javascript library perfectly taking care of my needs. Only in Opera this functionality does not function as wanted (no rounded corners), but that&#8217;s an issue Drew Diller is trying to address, according to his website. I definitely would suggest you to try for yourself if you would like an acceptable solution to the problem described hereabove.</p>
<p>The only thing that does not currently stop bothering me: unfortunately it is (still) not possible to have some javascript in an ASP.NET theme. Would that be possible, the solution would be perfect (for me). Perhaps somebody found a solution for me <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_razz.gif' alt="HTML rounded corners without images and div nesting icon razz" class='wp-smiley' title="HTML rounded corners without images and div nesting" />  ?</p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/html-rounded-corners-without-images-and-div-nesting/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

