Convert a hyperlink to a physical path

The title says all. Thanks.
LVL 3
maidinhtaiAsked:
Who is Participating?
 
svyCommented:
Server.MapPath(Request.FilePath)
0
 
nouloukCommented:
Hi,
if you want to know the physical path of your current page:
HttpContext.Current.Request.Path

Else here is a doc that helps you to point to the physical path:
http://www.codeproject.com/cs/internet/mywebserver.asp
Take a look at GetLocalPath() method.

Hope this helps.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.