Re: Checking relative url



What about using Server.MapPath to try and locate a physical directory
for the relative URL? This will give you back a physical path which
you can check for existence with System.IO.Directory.Exists

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 7 Jun 2005 00:04:09 -0700, ledder77@xxxxxxxxxxx wrote:

>Hi,
>I need to find a way to check if a relative url exists on the server. I
>cannot use WebRequest.Create method because it needs a complete URI.
>Any suggestion?
>Thanks in advance
>Francesco

.



Relevant Pages

  • Re: Business Objects logo in CrystalReportViewer
    ... > Well I looked in every physical directory in /Program Files/Business ... > know what a virtual directory is in Windows XP. ... >> Crystal 11 puts its viewers in a slightly different path. ... >> the physical path. ...
    (microsoft.public.vb.crystal)
  • Re: App Directory
    ... Request. ... but I need the physical path of the WebApp to adjust ... so elegant and flexible and will require many corrections to the apps ... physical directory where the app is located and runs from? ...
    (microsoft.public.dotnet.framework.aspnet)