Checking relative url

L

ledder77

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
 
S

Scott Allen

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
 

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,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top