Take the 2-minute tour ×  The default url pattern is
{controller}/{action}/{id} but I want it of the type {db-field-
which-is-retrieved-using-id}/{controller}/{action}/{id} I want
space where I can retrieve the db-field  share|improve this
question add comment  1 Answer  You can use whatever pattern you
like.              new { controller = "home", action = "index"}
What's important is to have a path segment('view' in this
example) and to declare the route before others so that it can
use this route and not the default one. I'm assuming the db-
field is something like an article title and you want it for SEO
purposes.  share|improve this answer I want to generate url
using the database so where exactly can I retrieve the data from
that id ? my links do not have that host, I want to generate it
when someone sees that page. –  Swapnil Gondkar Oct 31 '11 at
9:16 I don't understand. Can you post an example? –  MikeSW Oct
31 '11 at 11:02 ok see if I have {teacher-
name}/{controller}/{action}/{student-id} now I want