Dim host as string = Request.Url.Host
Label1.text = host & 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/
===================================
"Goofy" <me@mine.comwrote in message news:u%****************@TK2MSFTNGP02.phx.gbl...
That didnt give me what I was asking for actually as this returns
servername/wwwroot
I need the application directory ie servername/myAspNetApplication
Cheers
"Chris Fulstow" <ch**********@hotmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
>string physicalRootPath = Server.MapPath("/");
Goofy wrote:
>>I want to know how I can determin the root of my application in code.
AND
I need to know how I can refer to my application root in HTML as / goes
right back to wwwwroot