posts - 20,  comments - 3,  trackbacks - 0

当前路径为http://11.22.33.44:55/aa/bb/cc.aspx

如何取出http://11.22.33.44:55呢?方法非常多,以下是我的方法:

 Request.Url.GetComponents(UriComponents.SchemeAndServer,UriFormat.Unescaped)

关键是SchemeAndServer。

 

posted on 2007-05-07 09:52 Jeff.Yang 阅读(48) 评论(0) 编辑 收藏