<p>How do I generate friendly URLs within the ASP.NET MVC Framework? For example, we've got a URL that looks like this:</p>
<pre>http://site/catalogue/BrowseByStyleLevel/1</pre>
<p>The 1 is Id of the study level (Higher in this case) to browse, but I'l like to reformat the URL in the same way StackOverflow does it.</p>
<p>For example, these two URLs will take you to the same place:</p>
<blockquote>
<p><a href="https://stackoverflow.com/questions/119323/nested-for-loops-in-different-languages">https://stackoverflow.com/questions/119323/nested-for-loops-in-different-languages</a></p>
<p><a href="https://stackoverflow.com/questions/119323/">https://stackoverflow.com/questions/119323/</a></p>
</blockquote>
<p><strong>EDIT:</strong> The friendly part of the url is referred to as a <em>slug</em>.</p>

you have a route on the global.asax
```
```
routes.MapRoute(
                    "Default", // Route name
                    "{controller}/{action}/{id}", // URL with parameters
                    new { controller = "Home", action = "Index", id = ""} 
                    // Parameter defaults )
```
```
you can  define your own route like :
controller is the cs class inside the the controllers folder.
you can define your id - with the name you choose.
the system will pass the value to your actionResult method.
you can read more about this step here :
http://www.asp.net/learn/mvc/tutorial-05-cs.aspx