Ramsès Zogning II

Ramsès Zogning II

  • NA
  • 84
  • 20.1k

personalize Routes in asp.net mvc 4

Dec 7 2014 11:26 AM
Good evening everyone.
I am in the middle phase in dotnet MVC 4
for a learning project, I created a web application mvc 4 containing an User profile.
I want to know how to customize the Routing (if that is the term to use):
For example: When a user registers or logs, it has the following link into their browser: http: // localhost / Profile / index
I would rather this: http://localhost/Profile/Username
Where Username is the name of the current user (the one that has just authetifier).
 
Much like facebook. Example: https://www.facebook.com/Ramses 
Thanks.

Answers (7)