I ve seen in twitter, i can get a user view page by just typing in the url say http://twitter.com/pandiyachendur. How to do the same with asp.net mvc? I dont know how twitter does it?
I ve seen in twitter, i can get a user view page by just
Share
You need to be careful about the order in which you declare your routes. Since there is no common element to a
/{username}URL, you need to declare it as the last ‘catch-all’ route, after all of your specific routes.It’s also worth remembering that you need to extend your validation on usernames to prevent people from choosing names that conflict with the specific routes (e.g. LogIn).