title: Url Routing Asp.net from hierarchical tree of pages stored in a database
body: <p>Ok</p>
  
  <p>I have a bunch of html pages stored in a mssql database. Each row has:</p>
  
  <ul>
  <li>ID</li>
  <li>PageTitle</li>
  <li>Page Html Content</li>
  <li>ParentId</li>
  </ul>
  
  <p>ParentId is there so i can create a hierarchical tree of pages.</p>
  
  <p>Currently i am using this line of code in order to access the pages...</p>
  
  <pre><code>routes.MapPageRoute("front", "{PageTitle}", "~/front.aspx");
  </code></pre>
  
  <p>Which then causes a redirect to front.aspx so i can then use:</p>
  
  <pre><code>Page.RouteData.Values["PageTitle"].ToString()
  </code></pre>
  
  <p>In order to grab what i need so i can display the appropriate page in the browser.</p>
  
  <p>However, can anyone suggest how i would amend 'routes.MapPageRoute' so it supports an infinate hierarchical tree like i have in my database. Essentially i want to be able to type a url like: <a href="http://localhost/PageOne/SubPageOfPageOne" rel="nofollow noreferrer">http://localhost/PageOne/SubPageOfPageOne</a> etc</p>