Checking relative url

  • Thread starter Thread starter ledder77
  • Start date Start date
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
 
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

Back
Top