title: Asp.NET / VB.NET: Getting the path from the URL / URI?
body: <p>Say I have a project that I am deploying at </p>
  
  <p>www.foo.com/path1/default.aspx</p>
  
  <p>and </p>
  
  <p>www.foo.com/path2/default.aspx</p>
  
  <p>What would be the most reliable way to know if I was in the folder "path1", or "path2"?  Can I grab that directly, or do I need to split() somehow on the Request.Url.AbsolutePath, or... ? </p>
  
  <p>I just want to change colors, etc. based on which folder the user is in. </p>
  
  <p>Thanks for any assistance!</p>