<?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; aspx</title>
	<atom:link href="http://dotbert.loedeman.nl/category/aspx/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>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>Set MasterPage (.master) title from a web form (.aspx)</title>
		<link>http://dotbert.loedeman.nl/set-masterpage-master-title-from-a-web-form-aspx</link>
		<comments>http://dotbert.loedeman.nl/set-masterpage-master-title-from-a-web-form-aspx#comments</comments>
		<pubDate>Fri, 22 Feb 2008 09:12:00 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[aspx]]></category>
		<category><![CDATA[masterpage]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[web form]]></category>

		<guid isPermaLink="false">http://www.loedeman.net/wordpress/?p=15</guid>
		<description><![CDATA[Lots of people complain about not being able to change the master page&#8217;s title using ASP.NET 2.0 and up. A commonly seen tutorial is to use the following piece of code:

((HtmlTitle) Page.Master.FindControl(&#34;lblTitle&#34;)).Text =
    &#34;Set some kind of title&#34;;

In most of the cases you need to change the master page&#8217;s title, you do not have to bother [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of people complain about not being able to change the master page&#8217;s title using ASP.NET 2.0 and up. A commonly seen tutorial is to use the following piece of code:</p>
<pre class="brush: csharp;">
((HtmlTitle) Page.Master.FindControl(&quot;lblTitle&quot;)).Text =
    &quot;Set some kind of title&quot;;
</pre>
<p>In most of the cases you need to change the master page&#8217;s title, you do not have to bother about this. Just use the correct page stadium and set the page&#8217;s title. The only page event to be able to do this is Page_PreInit (since master page and content page are still separate &#8216;pages&#8217; in this stadium). The following will work (if you have AutoEventWireup enabled <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Set MasterPage (.master) title from a web form (.aspx)" />  ):</p>
<pre class="brush: csharp;">
protected void Page_PreInit(object sender, EventArgs e)
{
    Title = &quot;Set some kind of title&quot;;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/set-masterpage-master-title-from-a-web-form-aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
