N
Nathan Sokalski
When using the Server.MapPath() method, the results being returned are given
as locations on my hard drive. I would like to be returned a result that is
a URL, in my case something like the following:
http://localhost/WebApplication1/WebForm1.aspx
Instead, I am recieving results that are something like the following:
c:/inetpub/wwwroot/WebApplication1/WebForm1.aspx
I realize that these are the same file for me, but do not want them to cause
problems when I move my site to a host other than my computer. Is there a
way I can get MapPath to return a URL rather than a file directory?
as locations on my hard drive. I would like to be returned a result that is
a URL, in my case something like the following:
http://localhost/WebApplication1/WebForm1.aspx
Instead, I am recieving results that are something like the following:
c:/inetpub/wwwroot/WebApplication1/WebForm1.aspx
I realize that these are the same file for me, but do not want them to cause
problems when I move my site to a host other than my computer. Is there a
way I can get MapPath to return a URL rather than a file directory?