Application Root

G

Goofy

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
 
G

Goofy

That didnt give me what I was asking for actually as this returns

servername/wwwroot

I need the application directory ie servername/myAspNetApplication

Cheers
 
P

Patrice

This is actually ~/ instead of /.

--
Patrice

Goofy said:
That didnt give me what I was asking for actually as this returns

servername/wwwroot

I need the application directory ie servername/myAspNetApplication

Cheers
 
J

Juan T. Llibre

Dim host as string = Request.Url.Host
Label1.text = host & Request.ApplicationPath
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top