<?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>State Management</title><link>http://forums.asp.net/22.aspx</link><description>Managing ASP.NET state - ViewState, Application, Session, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=69&amp;c=17" 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: URL Rewriting with Rewrite Path - Relative links Problem</title><link>http://forums.asp.net/thread/2684579.aspx</link><pubDate>Wed, 15 Oct 2008 13:56:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2684579</guid><dc:creator>Andyh321</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2684579.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2684579</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all&lt;/p&gt;&lt;p&gt;just thought I would let you know that I have the solution!!!&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The following: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;HttpContext.Current.RewritePath(&amp;quot;~/SomePage.aspx&amp;quot;,false); &lt;/p&gt;&lt;p&gt;should be&lt;/p&gt;&lt;p&gt;HttpContext.Current.RewritePath(&amp;quot;~/SomePage.aspx&amp;quot;,&lt;b&gt;true&lt;/b&gt;); &lt;/p&gt;&lt;p&gt;in Application_BeginRequest.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I wish i had spotted that sooner!&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Andy &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>URL Rewriting with Rewrite Path - Relative links Problem</title><link>http://forums.asp.net/thread/2684340.aspx</link><pubDate>Wed, 15 Oct 2008 12:24:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2684340</guid><dc:creator>Andyh321</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2684340.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2684340</wfw:commentRss><description>&lt;p&gt;Hi all&lt;br /&gt;&lt;br /&gt;Not sure if this is the best category to post this, but hey, worth a try!&lt;br /&gt;&lt;br /&gt;I have a new project in VS2008, in which I catch the requested path in Application_BeginRequest and send the user on to the relevant page.&lt;/p&gt;&lt;p&gt;This works fine.&lt;/p&gt;&lt;p&gt;However, I am having problems with page references etc.&lt;/p&gt;&lt;p&gt;For example, if i want my internal page links to work, i.e. href=&amp;quot;category/product1/&amp;quot;, then I need a base tag.&lt;br /&gt;When i have a base tag, my css links are lost - so if i was on the page http://www.mysite.com/category/product1/, then the css link will be ../../stylesheet.css. This obviously does not work.&lt;/p&gt;&lt;p&gt;I can get the css to work by importing the css instead, but that still leaves a problem with my form&amp;#39;s action attribute - it will be looking for ../../Product.aspx?ProductID=1.&lt;/p&gt;&lt;p&gt;I can also solve this problem by overriding the forms attribute.&lt;/p&gt;&lt;p&gt;I am still left with dynamic image urls (in the code behind) being relative to the main route!&lt;/p&gt;&lt;p&gt;&lt;b&gt;However, I can solve all of these problems should I wish, BUT, my colleague who has exact same code but is using VS2005, can get his to work!!!! i.e. there is no ../../ before his css link for example!&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;This is very frustrating!&lt;/p&gt;&lt;p&gt;Does anyone have any ideas why - is it a difference in my VS settings, or is my IIS different? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Just so you know, my VS solution has multiple projects - a couple of class libraries plus a couple of websites, and I have some virtual folders for images etc.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The web app I am talking about has one Master page which is used in all cases.&lt;/p&gt;&lt;p&gt;Any advice would be much appreciated!&lt;/p&gt;&lt;p&gt;Kind regards &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Andy &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>