• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Convert a hyperlink to a physical path

The title says all. Thanks.
0
maidinhtai
Asked:
maidinhtai
1 Solution
 
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
 
svyCommented:
Server.MapPath(Request.FilePath)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now