<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Theme css files not being applied</title><link>http://forums.asp.net/thread/1419857.aspx</link><pubDate>Thu, 05 Oct 2006 21:58:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1419857</guid><dc:creator>leidegre</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1419857.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1419857</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m posting to confirm your problem. However, your problem might be caused by&amp;nbsp; a diffrent reason.&lt;/p&gt;&lt;p&gt;&amp;nbsp;At one place I was adding some client script inclide in the OnInit event, however, I choose to override event handlers rather than hook up events, since that produce a better looking and more dynamic code for me, but sometimes I forget to call the base method, and that could cause a problem.&lt;/p&gt;&lt;p&gt;e.g.&lt;/p&gt;&lt;p&gt;The Page.OnInit method does the following&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;protected internal override void&lt;/span&gt; OnInit(EventArgs e)
{
      &lt;span class="kwd"&gt;base&lt;/span&gt;.OnInit(e);
      &lt;span class="kwd"&gt;if&lt;/span&gt; (&lt;span class="kwd"&gt;this&lt;/span&gt;._theme != &lt;span class="kwd"&gt;null&lt;/span&gt;)
      {
            &lt;span class="kwd"&gt;this&lt;/span&gt;._theme.SetStyleSheet();
      }
      &lt;span class="kwd"&gt;if&lt;/span&gt; (&lt;span class="kwd"&gt;this&lt;/span&gt;._styleSheet != &lt;span class="kwd"&gt;null&lt;/span&gt;)
      {
            &lt;span class="kwd"&gt;this&lt;/span&gt;._styleSheet.SetStyleSheet();
      }
}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;Obviously by not calling the base.OnInit method on my derived Page class would ignore the inclusion of theme files. &lt;/p&gt;&lt;p&gt;If this is not why you have a problem,&amp;nbsp; try using either reflection or some property to invoke this methods somewhere in your code to make things happen, it could cause more problems but it might lead you on the right track.&lt;/p&gt;&lt;p&gt;Regard,&lt;br /&gt;John&amp;nbsp;&lt;/p&gt;</description></item><item><title>Theme css files not being applied</title><link>http://forums.asp.net/thread/1406076.aspx</link><pubDate>Thu, 21 Sep 2006 11:21:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1406076</guid><dc:creator>Yazilliclick</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1406076.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1406076</wfw:commentRss><description>I&amp;#39;ve got a website with an App_Themes folder with a Default folder in there and some css files in the Default folder.&lt;br /&gt;&lt;br /&gt;My page has the Theme directive set to Default.&lt;br /&gt;&lt;br /&gt;My problem is that only 3 of my css files out of 5 are being applied currently. &amp;nbsp;Does anybody know what would cause this?&lt;br /&gt;</description></item></channel></rss>