Possible Duplicate:
Is it possible to make an ASP.NET MVC route based on a subdomain?
How to create subdomain with username using C# and asp.net?
How can I create a sub-domain for each user who is registering in my application?
For eg. my application is hosted at www.xyz.com
If a user with name "bsoft" registers in my app, I need to create a url for the user as bsoft.xyz.com.