Reputation: 48686
How can I dynamically create a host name in ASP.NET? Like if people come to my site, I want to be able to dynamically create them a .Mysite.Com host name. I've seen this done at other sites before but can't seem to find documation on how to do it. Any help would be appreciated. I'm using VB.NET/ASP.NET 2008 and IIS 6.0
Upvotes: 2
Views: 1241
Reputation: 217293
Request.ServerVariables["HTTP_HOST"]
Upvotes: 3