开发者

get a domain address with asp

how do I get the domain of an address to the asp?

Suppose we have the following addresses:

example.com

开发者_如何学Cexample.com/my

example.com/news/nacional

example.com/news/naciona/nada-como-um-dia.html

I'd like to get just the domain, in this case o. ..

"example.com"

I take the field as an address to the asp?

Thanks!


Try this: Request.servervariables("SERVER_NAME")

Torbjørn

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜