Groups | Blog | Home
all groups > asp.net > february 2004 >

asp.net : Find the server part of the url, and the virtual root folder


mikeb
2/17/2004 2:50:39 PM
[quoted text, click to view]

Server : Request.Url.Host

Path: Request.Url.AbsolutePath - in this case you will need to do a bit
of parsing to get rid of the file requested (if there is one in the
URL), if you just want the directory


--
A Lonely Programmer
2/17/2004 4:16:37 PM
[quoted text, click to view]

You might want to check out the uri class

i think uri.authority might be what you are looking for

[quoted text, click to view]

NWx
2/17/2004 11:52:06 PM
Hi,

Is there any way to get the server part of the URL, without parsing
request.url by myself?
And also, how van I get the virtual root folder of my application?

Thanks

AddThis Social Bookmark Button