<?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: menu background image problem with security trimming enabled sitemap</title><link>http://forums.asp.net/thread/2573174.aspx</link><pubDate>Thu, 21 Aug 2008 23:13:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2573174</guid><dc:creator>Dave Sussman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2573174.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2573174</wfw:commentRss><description>&lt;p&gt;Ah right, so you don&amp;#39;t want the image shown on when the admin pages are displayed. Probably the simplest way to do this is change the css class when on the admin pages. Let&amp;#39;s assume I have a div containing my menu:&lt;/p&gt;
&lt;p&gt;&amp;lt;div id=&amp;quot;nav&amp;quot; runat=&amp;quot;server&amp;quot; class=&amp;quot;nav&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;asp:Menu ...&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;In my code I&amp;#39;d detect if I was in one of the admin pages, perhaps by checking to see if the path contained &amp;quot;/admin&amp;quot; (I tend to put all of my admin pages in a separate &amp;quot;admin&amp;quot; folder). If it is an admin page, I could just change the class:&lt;/p&gt;
&lt;p&gt;if (Request.Path.Contains(&amp;quot;/admin/&amp;quot;))&lt;br /&gt;&amp;nbsp; nav.class = &amp;quot;navAdmin&amp;quot;;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Then my CSS could be:&lt;/p&gt;
&lt;p&gt;.nav {&lt;br /&gt;&amp;nbsp; /* normal formatting */&lt;br /&gt;&amp;nbsp; backgroun-image: url(navimage.gif);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.navAdmin {&lt;br /&gt;&amp;nbsp; /* normal formatting - no background-image */&lt;br /&gt;}&lt;/p&gt;</description></item><item><title>Re: menu background image problem with security trimming enabled sitemap</title><link>http://forums.asp.net/thread/2573162.aspx</link><pubDate>Thu, 21 Aug 2008 22:52:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2573162</guid><dc:creator>ashkant</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2573162.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2573162</wfw:commentRss><description>&lt;p&gt;i mean the picture of background. imagine that my menu in default page has it&amp;#39;s background but in for example admin page the background isn&amp;#39;t seen&lt;/p&gt;</description></item><item><title>Re: menu background image problem with security trimming enabled sitemap</title><link>http://forums.asp.net/thread/2573124.aspx</link><pubDate>Thu, 21 Aug 2008 22:22:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2573124</guid><dc:creator>Dave Sussman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2573124.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2573124</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m a little confused by what you mean. What do you mean by &amp;quot;to see the picture in all of my pages&amp;quot;?&lt;/p&gt;
&lt;p&gt;Any nodes that are trimmed by authorization won&amp;#39;t appear in the menu, but the container div still shows, and therefore the background image shows, assuming the container is big enough to show the background image.&lt;/p&gt;</description></item><item><title>menu background image problem with security trimming enabled sitemap</title><link>http://forums.asp.net/thread/2573071.aspx</link><pubDate>Thu, 21 Aug 2008 21:42:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2573071</guid><dc:creator>ashkant</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2573071.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2573071</wfw:commentRss><description>&lt;p&gt;hi all&lt;/p&gt;i have a sitemap with &lt;font color="#ff0000" size="2"&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;securityTrimmingEnabled&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&amp;nbsp; . i use a background image for my menu ( for my div which&amp;nbsp; contains menu) like this:&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;div&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;style&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;background-image&lt;/font&gt;&lt;font size="2"&gt;:&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;url(Images/bgmenu.gif)&lt;/font&gt;&lt;font size="2"&gt;; ......&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;this works for all pages that are allowed for everyone , but the pages that follow security rules can not show the background image. what should i use instead to see the picture in all of my pages?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;thank you&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>