Re: Checking relative url
- From: Scott Allen <scott@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 07 Jun 2005 09:35:58 -0400
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
.
- References:
- Checking relative url
- From: ledder77
- Checking relative url
- Prev by Date: Re: ASP.NET image - remove border attribute (c#)
- Next by Date: Forms Security Problem
- Previous by thread: Checking relative url
- Next by thread: How to get the url where I came from?
- Index(es):
Relevant Pages
|