思路不清晰怎么办:如何获得当前服务器的域名

来源:百度文库 编辑:杭州交通信息网 时间:2024/06/06 01:09:57
如何获得当前服务器的域名
在asp.net(VB)中,如何取得当前服务器的域名呢。小分请求,望帮忙。

你试一下
string strPhysicalApplicationPath = this.Request.PhysicalApplicationPath;
string strPhysicalPath = this.Request.PhysicalPath;