Get Entry from URL
<p>I am writing classic asp.net website and struggling with a problem. </p>

<p>Usually in URL send data by doing this: localhost/MyrandomPage.aspx?UserName=RandomUsername</p>

<p>But i am trying to make a page more personal so i want Url to look like this: </p>

<p>localhost.com/Profile/RandomUsername</p>

<p>And i am cant find a way how to retrive RandomUserName after slash in Url. </p>

<p>ive done Routing:</p>

<pre><code>    public static void RegisterRoutes(RouteCollection routes)
    {
        routes.MapPageRoute("",
            "/Pages/{UserName}",
            "~/Pages/Profile.aspx");
    }
</code></pre>

<p>But how do i retrive UserName??</p>
