在ASP.NET中动态创建子域 [英] Create subdomain dynamically in ASP.NET
本文介绍了在ASP.NET中动态创建子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要动态地创建一个子域使用C#。
I want to create a sub-domain dynamically using C#.
例如,域名是 www.example.com
。我将如何动态地创建基于区域的国家子域。举例来说,我想印度添加为使用C#中的子域 www.india.example.com
。
e.g., The domain name is www.example.com
. How would I create a country sub domain dynamically based on region. For instance, I want to add India as the sub-domain using C# www.india.example.com
.
推荐答案
这是simples替代做到这一点:
This is simples alternative to do this:
- 的http://blog.maartenballiauw.be/post/2009/05/20/ASPNET-MVC-Domain-Routing.aspx
- 的http://lukesampson.com/post/303245177/subdomains-for-a-single-application-with-asp-net-mvc
这篇关于在ASP.NET中动态创建子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文