virtual path from a physical one

  • Thread starter Thread starter dmalhotr2001
  • Start date Start date
D

dmalhotr2001

Hi,

I was wondering is there a way to get the virtual path (i.e.
http://localhost/blah/blah) if you specify a physical one (i.e.
C:\wwwroot\inetput\exampleDir).

I know you can do the opposite with Server.MapPath. However I'm
looking for going from physical to virtual path.

Thanks

:D
 
Actually no,

What I want is when I pass in to a function (i..e
C:\wwwroot\inetpub\test\test\test), it will convert it to a virtual
root like http://localhost/test/test/test.

Is there something that does that?

Thanks

:D
 

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