<?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; asp.net</title>
	<atom:link href="http://dotbert.loedeman.nl/category/aspnet/feed" rel="self" type="application/rss+xml" />
	<link>http://dotbert.loedeman.nl</link>
	<description>.NET thoughts by Bert Loedeman</description>
	<lastBuildDate>Thu, 18 Mar 2010 12:49:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clean and minified Javascript</title>
		<link>http://dotbert.loedeman.nl/clean-and-minified-javascript</link>
		<comments>http://dotbert.loedeman.nl/clean-and-minified-javascript#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:09:48 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://dotbert.loedeman.nl/?p=201</guid>
		<description><![CDATA[It has been a while since I last posted a technical post. I&#8217;m sorry, but I am too busy enjoying my work to keep you posted as much as I should.
Just a few days ago I was playing around with YSlow and PageSpeed, two add-ons on Firefox. Both stated my Javascript files were 1) to [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a while since I last posted a technical post. I&#8217;m sorry, but I am too busy enjoying my work to keep you posted as much as I should.</p>
<p>Just a few days ago I was playing around with <a title="http://developer.yahoo.com/yslow/" href="http://developer.yahoo.com/yslow/" target="_blank">YSlow</a> and <a title="http://code.google.com/intl/nl/speed/page-speed/" href="http://code.google.com/intl/nl/speed/page-speed/" target="_blank">PageSpeed</a>, two add-ons on Firefox. Both stated my Javascript files were 1) to many and 2) not at all at minimum size.</p>
<p>Searching for an automated way of cleaning up and minifying my Javascript files, I bumped in on <a title="http://www.crockford.com/javascript/jsmin.html" href="http://www.crockford.com/javascript/jsmin.html" target="_blank">JSMin</a>, a Javascript minifier that can be downloaded in <a title="http://www.crockford.com/javascript/jsmin.cs" href="http://www.crockford.com/javascript/jsmin.cs" target="_blank">C#</a>. Do you hear the term HttpModule in your head already as I did?</p>
<p>When you try to implement JSMin, do consider the fact that your Javascript files will be stripped really rigorous: some of my files did not work anymore after minifying. The reason for this is that Javascript gives you the opportunity to write bad code. To prevent myself from writing rubbish Javascript files that fall apart using JSMin, I now use &#8216;the tool that hurts feelings&#8217;, <a title="http://www.jslint.com/" href="http://www.jslint.com/" target="_blank">JSLint</a>. It hints you about bad code and, when obliged to, prevents you from failure when using JSMin afterwards <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Clean and minified Javascript" />  &#8230;</p>
<p>Lucky coding <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Clean and minified Javascript" />  !</p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/clean-and-minified-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 [...]]]></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=':)' 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;">
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;">
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=':)' 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>Solution: The operation could not be completed. Invalid FORMATETC structure</title>
		<link>http://dotbert.loedeman.nl/solution-the-operation-could-not-be-completed-invalid-formatetc-structure</link>
		<comments>http://dotbert.loedeman.nl/solution-the-operation-could-not-be-completed-invalid-formatetc-structure#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:29:15 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[aspx]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[visual studio 2005]]></category>
		<category><![CDATA[visual studio 2008]]></category>

		<guid isPermaLink="false">http://dotbert.loedeman.nl/?p=94</guid>
		<description><![CDATA[This morning I ran into a ASP.NET bug in Visual Studio. Dragging a custom server control on an aspx file was not possible since I had &#8216;an invalid FORMATETC structure&#8217; (what the &#8230;. is that?!). The message box alerting me something is really really wrong is this one:


Trying to solve the bug, I  found the following [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">This morning I ran into a ASP.NET bug in Visual Studio. Dragging a custom server control on an aspx file was not possible since I had &#8216;an invalid FORMATETC structure&#8217; (what the &#8230;. is that?!). The message box alerting me something is really really wrong is this one:</p>
<div style="text-align: center;"><a href="http://dotbert.loedeman.nl/wp-content/uploads/2009/07/FORMATETC-problem.jpg" rel="shadowbox[post-94];player=img;"></a></div>
<p style="text-align: center;"><img class="size-full wp-image-95 aligncenter" title="The FORMATETC bug" src="http://dotbert1.loedeman.nl/wp-content/uploads/2009/07/FORMATETC-problem.jpg" alt="The FORMATETC bug" width="408" height="119" /></p>
<p>Trying to solve the bug, I  found the following attribute to be the problem: [ToolboxItem(true)]. Just delete the attribute, rebuild the application and the problem/bug disappears!</p>
<p>Good luck! Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/solution-the-operation-could-not-be-completed-invalid-formatetc-structure/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=':P' 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>4</slash:comments>
		</item>
		<item>
		<title>Cheap ASP.NET web hosting</title>
		<link>http://dotbert.loedeman.nl/cheap-aspnet-web-hosting</link>
		<comments>http://dotbert.loedeman.nl/cheap-aspnet-web-hosting#comments</comments>
		<pubDate>Mon, 30 Jun 2008 13:03:00 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[cheap hosting]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.loedeman.net/wordpress/?p=20</guid>
		<description><![CDATA[Since a couple of months I moved my hosting packages to a new host, DIGITALiBiz. The reason I moved in to them is their incredible low pricing considering what they offer. I currently have ASP.NET 3.5 hosting, 350GB disk space and 5 SQL Server 2005 databases of 250MB each. Who can beat them???
After some months [...]]]></description>
			<content:encoded><![CDATA[<p>Since a couple of months I moved my hosting packages to a new host, DIGITALiBiz. The reason I moved in to them is their incredible low pricing considering what they offer. I currently have ASP.NET 3.5 hosting, 350GB disk space and 5 SQL Server 2005 databases of 250MB each. Who can beat them???</p>
<p>After some months of working with DIGITALiBiz, I can say that they have an excellent support team and a very reasonable performance. Definitely recommended!</p>
<p>Curious? Have a look at <a href="http://www.digitalibiz.com/webhosting/" target="_blank">DIGITALiBiz</a>.</p>
<p>Technorati tags: <a href="http://technorati.com/tag/asp.net" rel="tag">asp.net</a> <a href="http://technorati.com/tag/cheap+hosting" rel="tag">cheap hosting</a> <a href="http://technorati.com/tag/hosting" rel="tag">hosting</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/cheap-aspnet-web-hosting/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
