Absolutely correct, although there's a couple of gotchas to watch out for.
Dim Url1 As String = Request.Url.ToS tring
Dim FQDN As New Uri(Url1)
Dim dns As String
dns = FQDN.GetLeftPar t(UriPartial.Au thority)
Of course, if only the raw domain name is wanted, use :
Dim dnsname As String = Request.Url.Hos t
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******@hotma il.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
Use Request.Uri.Get LeftPart(UriPar tial.Authority) . Or
UriPartial.Some thing else.
Grtz, Wouter vanVugt
blogs.infosuppo rt.com/wouterv