<?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: How to make a theme independent reference to an image</title><link>http://forums.asp.net/thread/2379615.aspx</link><pubDate>Mon, 26 May 2008 02:27:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2379615</guid><dc:creator>pkellner</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2379615.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2379615</wfw:commentRss><description>&lt;p&gt;Thanks Dave,&lt;/p&gt;
&lt;p&gt;So, I&amp;#39;m pretty sure I know what you mean here but just in case, I googled (ok live searched) for an example.&amp;nbsp; Hard to believe (ok, not that hard) but I found myself asking the same question about 18 months ago.&amp;nbsp; Arg.&amp;nbsp; Brain freeze is the only excuse.&amp;nbsp; So, I decided best to blog the answer and maybe I&amp;#39;ll remember it longer this time.&lt;/p&gt;
&lt;p&gt;Thanks again for the tip.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://peterkellner.net/2008/05/25/codecampwebsiteseries3/"&gt;http://peterkellner.net/2008/05/25/codecampwebsiteseries3/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to make a theme independent reference to an image</title><link>http://forums.asp.net/thread/2379285.aspx</link><pubDate>Sun, 25 May 2008 16:15:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2379285</guid><dc:creator>Dave Sussman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2379285.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2379285</wfw:commentRss><description>&lt;p&gt;You should store the images under the themes and set the ImageUrl in the skin file. Give the control a SkinID in both the skin file and in the page. When the theme changes the appropriate image will be used.&lt;/p&gt;</description></item><item><title>Re: How to make a theme independent reference to an image</title><link>http://forums.asp.net/thread/2379283.aspx</link><pubDate>Sun, 25 May 2008 16:10:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2379283</guid><dc:creator>pkellner</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2379283.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2379283</wfw:commentRss><description>&lt;p&gt;If I follow the suggestion above (or do it in line with a Page.DataBind()) the problem is there is no design time support and it makes life difficult for the page designer since they have this extra syntax to use.&lt;/p&gt;Is there a &amp;quot;nice&amp;quot; way to do it that keeps the page designer happy and has design time support?&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; 
&lt;p&gt;ImageUrl&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;%= &amp;#39;~/App_Themes/&amp;#39; + this.Theme + &amp;#39;/Image/headCodeCamp.gif&amp;#39; %&amp;gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: How to make a theme independent reference to an image</title><link>http://forums.asp.net/thread/2378680.aspx</link><pubDate>Sat, 24 May 2008 18:37:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2378680</guid><dc:creator>kamii47</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2378680.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2378680</wfw:commentRss><description>&lt;p&gt;pkellner.&lt;/p&gt;&lt;p&gt;R U able to solve your problem ?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to make a theme independent reference to an image</title><link>http://forums.asp.net/thread/2378621.aspx</link><pubDate>Sat, 24 May 2008 16:59:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2378621</guid><dc:creator>kamii47</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2378621.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2378621</wfw:commentRss><description>&lt;p&gt;easiest way is to do this in yourcodebehind&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ImageButton1.&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ImageUrl&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;~/App_Themes/&amp;quot;+ this.Theme +&amp;quot;/Images/login.gif&amp;quot;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;</description></item><item><title>How to make a theme independent reference to an image</title><link>http://forums.asp.net/thread/2378617.aspx</link><pubDate>Sat, 24 May 2008 16:50:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2378617</guid><dc:creator>pkellner</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2378617.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2378617</wfw:commentRss><description>&lt;p&gt;I currently have an image button as follows.&amp;nbsp; What is the simplest way to reference login.gif when my theme changes from Gray to Red for example&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;ImageButton&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;ImageButton1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ImageUrl&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;~/App_Themes/Gray/Images/login.gif&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>