Dim fullappname as string = Request.Url.Host
fullURL.text = "The full URL to the application root is : " & "http://" & fullappname &
Request.ApplicationPath & "/"
If you don't need the trailing slash :
"http://" & fullappname & Request.ApplicationPath
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/
===================================
"xeroxero" < > wrote in message
news:...
> With Framework 2.0, what is the best way to get the current full URI
> of the web application? For example, if a user goes to
>
> http://mysite.com/place/subdir
>
> and the virtrual directory (web app) is /place
>
> how to get
>
> http://mysite.com/place ?
>
>
> Thanks.