title: Path equivalent in asp.net (C#)?
body: <p>Whats the equivalent to System.IO.Path ?</p>
  
  <p>I got this url: <a href="http://www.website.com/category1/category2/file.aspx?data=123" rel="nofollow">http://www.website.com/category1/category2/file.aspx?data=123</a></p>
  
  <p>How can i break this down, like</p>
  
  <pre><code>var url = ASPNETPATH("http://www.website.com/category1/category2/file.aspx?data=123");
  
  url.domain &lt;-- this would then return http://www.website.com
  
  url.folder &lt;-- would return category1/category2
  
  url.file &lt;-- would return file.aspx
  
  url.queryString &lt;-- would return the querystring in some format
  </code></pre>