<?xml version="1.0" encoding="ISO-8859-1"?><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: How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control</title>
	<atom:link href="http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Sep 2010 10:44:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Tobias</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-752</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Sat, 04 Sep 2010 10:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-752</guid>
		<description>Incredible! Thanks a lot for this simple but fully functional solution.

One note: In your example code to put in the Styles.skin file, I had to change ConditionCommentExpression to ConditionalCommentExpression. A simple spelling error, maybe someone is helped!</description>
		<content:encoded><![CDATA[<p>Incredible! Thanks a lot for this simple but fully functional solution.</p>
<p>One note: In your example code to put in the Styles.skin file, I had to change ConditionCommentExpression to ConditionalCommentExpression. A simple spelling error, maybe someone is helped!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mrinal Jaiswal</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-476</link>
		<dc:creator>Mrinal Jaiswal</dc:creator>
		<pubDate>Thu, 04 Mar 2010 09:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-476</guid>
		<description>Hi Egil,

I was in need to this solution only, u made my work very eassy :)

Thanks,
Mrinal Jaiswal</description>
		<content:encoded><![CDATA[<p>Hi Egil,</p>
<p>I was in need to this solution only, u made my work very eassy <img src='http://egilhansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks,<br />
Mrinal Jaiswal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-462</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Thu, 04 Feb 2010 13:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-462</guid>
		<description>Hi Jonathan

Thanks, glad to hear it. And thanks for the headsup about the download link. &lt;del datetime=&quot;2010-02-04T13:32:32+00:00&quot;&gt;It seems I managed to forget the zip file on the old server. Will have to look through my backups and upload it again.&lt;/del&gt; The download link should work again.</description>
		<content:encoded><![CDATA[<p>Hi Jonathan</p>
<p>Thanks, glad to hear it. And thanks for the headsup about the download link. <del datetime="2010-02-04T13:32:32+00:00">It seems I managed to forget the zip file on the old server. Will have to look through my backups and upload it again.</del> The download link should work again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Carroll</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-461</link>
		<dc:creator>Jonathan Carroll</dc:creator>
		<pubDate>Thu, 04 Feb 2010 12:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-461</guid>
		<description>Hi Egil,

Many thanks for providing this fantastic solution to a VERY frustrating problem at times! Just wanted to point out that your download link doesn&#039;t work... it just reloads the article.

Cheers,
Jonathan</description>
		<content:encoded><![CDATA[<p>Hi Egil,</p>
<p>Many thanks for providing this fantastic solution to a VERY frustrating problem at times! Just wanted to point out that your download link doesn&#8217;t work&#8230; it just reloads the article.</p>
<p>Cheers,<br />
Jonathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-417</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Tue, 24 Nov 2009 08:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-417</guid>
		<description>Hi RenÃ©

You are more than welcome to use the controls. I am happy to hear somebody else finds then useful. Good luck with your project.

Regards, Egil.</description>
		<content:encoded><![CDATA[<p>Hi RenÃ©</p>
<p>You are more than welcome to use the controls. I am happy to hear somebody else finds then useful. Good luck with your project.</p>
<p>Regards, Egil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: René Kuss</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-415</link>
		<dc:creator>René Kuss</dc:creator>
		<pubDate>Mon, 23 Nov 2009 21:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-415</guid>
		<description>Hi Egil,

i&#039;m developing an open source application. I&#039;ve integrated your solution into this project. I&#039;ve added a comment on the controls that point to this article. I hope thats ok for you. If not, tell me an i&#039;ll do it another way. The sourcecode can be found on spheria.codeplex.com.</description>
		<content:encoded><![CDATA[<p>Hi Egil,</p>
<p>i&#8217;m developing an open source application. I&#8217;ve integrated your solution into this project. I&#8217;ve added a comment on the controls that point to this article. I hope thats ok for you. If not, tell me an i&#8217;ll do it another way. The sourcecode can be found on spheria.codeplex.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-327</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Fri, 26 Jun 2009 13:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-327</guid>
		<description>Hi Mike

I think the following should compile for you (although I have not tested it at all):

&lt;pre&gt;
List&lt;HtmlLink&gt; removeCandidate = new List&lt;HtmlLink&gt;();
foreach(Control c in Page.Header.Controls)
{
    HtmlLink link = c as HtmlLink;
    if(link != null &amp;&amp; link.Href.StartsWith(themePath))
    {
        removeCandidate.Add(link);
    }
}
&lt;/pre&gt;

Let me know if it works, regards, Egil.</description>
		<content:encoded><![CDATA[<p>Hi Mike</p>
<p>I think the following should compile for you (although I have not tested it at all):</p>
<pre>
List&lt;HtmlLink&gt; removeCandidate = new List&lt;HtmlLink&gt;();
foreach(Control c in Page.Header.Controls)
{
    HtmlLink link = c as HtmlLink;
    if(link != null &amp;amp;&amp;amp; link.Href.StartsWith(themePath))
    {
        removeCandidate.Add(link);
    }
}
</pre>
<p>Let me know if it works, regards, Egil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Taylor</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-326</link>
		<dc:creator>Mike Taylor</dc:creator>
		<pubDate>Fri, 26 Jun 2009 12:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-326</guid>
		<description>I&#039;m trying to do this using the 2.0 framework --- is there a way around the LINQ query:

// find all existing stylesheets in header
                var removeCandidate = Page.Header.Controls.OfType()
                    .Where(link =&gt; link.Href.StartsWith(themePath)).ToList();

How can I do this in 2.0?

Mike</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to do this using the 2.0 framework &#8212; is there a way around the LINQ query:</p>
<p>// find all existing stylesheets in header<br />
                var removeCandidate = Page.Header.Controls.OfType()<br />
                    .Where(link =&gt; link.Href.StartsWith(themePath)).ToList();</p>
<p>How can I do this in 2.0?</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jurriaan Nijkamp</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-286</link>
		<dc:creator>Jurriaan Nijkamp</dc:creator>
		<pubDate>Thu, 02 Apr 2009 11:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-286</guid>
		<description>Very nice, exactly what I needed. I used a method with a VirtualPathProvider before, but that doesn&#039;t work with precompiled websites. Thanks! :-)</description>
		<content:encoded><![CDATA[<p>Very nice, exactly what I needed. I used a method with a VirtualPathProvider before, but that doesn&#8217;t work with precompiled websites. Thanks! <img src='http://egilhansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim McCurdy</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-269</link>
		<dc:creator>Tim McCurdy</dc:creator>
		<pubDate>Sun, 22 Feb 2009 20:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-269</guid>
		<description>This solution actually...rocks!  I took your control and modified it slightly so that the &quot;Style&quot; class is no longer deriving from &quot;Control&quot; so it makes the markup cleaner (it gets rid of the &quot;ID&quot; and &quot;runat&quot; attributes of each Style tag).  I think I will start using this from now on!

One thing to note, if you&#039;re running your website after creating a custom control like this, and for some reason all your Breakpoints don&#039;t get hit and the page is rendered blank,  follow these steps (it took forever to figure this out):
1.)  Stop the web application
2.)  Go into the Page where you have you custom control and simply click the &quot;Design&quot; view.

Visual Studio will now show you all the errors that is causing your site not to parse.  It won&#039;t show you these same errors anywhere during run-time!</description>
		<content:encoded><![CDATA[<p>This solution actually&#8230;rocks!  I took your control and modified it slightly so that the &#8220;Style&#8221; class is no longer deriving from &#8220;Control&#8221; so it makes the markup cleaner (it gets rid of the &#8220;ID&#8221; and &#8220;runat&#8221; attributes of each Style tag).  I think I will start using this from now on!</p>
<p>One thing to note, if you&#8217;re running your website after creating a custom control like this, and for some reason all your Breakpoints don&#8217;t get hit and the page is rendered blank,  follow these steps (it took forever to figure this out):<br />
1.)  Stop the web application<br />
2.)  Go into the Page where you have you custom control and simply click the &#8220;Design&#8221; view.</p>
<p>Visual Studio will now show you all the errors that is causing your site not to parse.  It won&#8217;t show you these same errors anywhere during run-time!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
