<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.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>Making PathInfo And ASP.NET Themes Work Together</title><link>http://weblogs.asp.net/paulomorgado/archive/2008/07/24/making-pathinfo-and-asp-net-themes-work-together.aspx</link><description>Updated on 2008.07.28 – The code was done in a hurry and, talking to my friend Luís , I noticed that I had forgotten to make a case insensitive comparison and that the code was not so obvious. So, I updated the code and added an explanation. On my last</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Paulo Morgado : Outras Formas De Fazer Com Que PathInfo E ASP.NET Themes Coexistam</title><link>http://weblogs.asp.net/paulomorgado/archive/2008/07/24/making-pathinfo-and-asp-net-themes-work-together.aspx#6440837</link><pubDate>Fri, 25 Jul 2008 00:24:47 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6440837</guid><dc:creator>Paulo Morgado : Outras Formas De Fazer Com Que PathInfo E ASP.NET Themes Coexistam</dc:creator><author>Paulo Morgado : Outras Formas De Fazer Com Que PathInfo E ASP.NET Themes Coexistam</author><description>&lt;p&gt;Pingback from &amp;nbsp;Paulo Morgado : Outras Formas De Fazer Com Que PathInfo E ASP.NET Themes Coexistam&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6440837" width="1" height="1"&gt;</description></item><item><title>Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado</title><link>http://weblogs.asp.net/paulomorgado/archive/2008/07/24/making-pathinfo-and-asp-net-themes-work-together.aspx#6440797</link><pubDate>Fri, 25 Jul 2008 00:08:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6440797</guid><dc:creator>Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado</dc:creator><author>Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado</author><description>&lt;p&gt;Pingback from &amp;nbsp;Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6440797" width="1" height="1"&gt;</description></item><item><title>Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado</title><link>http://weblogs.asp.net/paulomorgado/archive/2008/07/24/making-pathinfo-and-asp-net-themes-work-together.aspx#6440796</link><pubDate>Fri, 25 Jul 2008 00:07:53 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6440796</guid><dc:creator>Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado</dc:creator><author>Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado</author><description>&lt;p&gt;Pingback from &amp;nbsp;Other Ways For Making PathInfo And ASP.NET Themes Work Together - Paulo Morgado&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6440796" width="1" height="1"&gt;</description></item><item><title>re: Making PathInfo And ASP.NET Themes Work Together</title><link>http://weblogs.asp.net/paulomorgado/archive/2008/07/24/making-pathinfo-and-asp-net-themes-work-together.aspx#6440450</link><pubDate>Thu, 24 Jul 2008 21:47:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6440450</guid><dc:creator>Paulo Morgado</dc:creator><author>Paulo Morgado</author><description>&lt;p&gt;Hi Raj,&lt;/p&gt;
&lt;p&gt;Great idea. Let me think about it for a while.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6440450" width="1" height="1"&gt;</description></item><item><title>re: Making PathInfo And ASP.NET Themes Work Together</title><link>http://weblogs.asp.net/paulomorgado/archive/2008/07/24/making-pathinfo-and-asp-net-themes-work-together.aspx#6440027</link><pubDate>Thu, 24 Jul 2008 19:01:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6440027</guid><dc:creator>rajbk</dc:creator><author>rajbk</author><description>&lt;p&gt;You could also root the url by using the following code in your base page (not tested completely). Similar code could be used in the master page also:&lt;/p&gt;&lt;pre style="font-face:consolas, courier new;"&gt;protected override void OnInit(EventArgs e
{
&amp;nbsp; &amp;nbsp;base.OnInit(e);
&amp;nbsp; &amp;nbsp;foreach (Control headerControl in this.Page.Header.Controls)
&amp;nbsp; &amp;nbsp;{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HtmlLink link = headerControl as HtmlLink;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (link != null)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (link.Href.StartsWith(&amp;quot;~/App_Themes&amp;quot;))
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;link.Href = Request.Url.GetLeftPart(UriPartial.Authority) +
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Page.ResolveUrl(link.Href);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&amp;nbsp; &amp;nbsp;}
}&lt;/pre&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6440027" width="1" height="1"&gt;</description></item></channel></rss>