Absolutely correct, although there's a couple of gotchas to watch out for.
Dim Url1 As String = Request.Url.ToString
Dim FQDN As New Uri(Url1)
Dim dns As String
dns = FQDN.GetLeftPart(UriPartial.Authority)
Of course, if only the raw domain name is wanted, use :
Dim dnsname As String = Request.Url.Host
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
<wo******@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Use Request.Uri.GetLeftPart(UriPartial.Authority) . Or
UriPartial.Something else.
Grtz, Wouter vanVugt
blogs.infosupport.com/wouterv