Question

Locked

Relative Path

By miapoohfox ·
I am creating asp.net program to display a list of all subfolders in a folder. what i want is to create a relative path to the parent folder, but i am not sure how to do that. something similar to what u would do with images (~/Images/img.jpg). Can someone please help me.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Relative path is from where the

by Tony Hopkinson In reply to Relative Path

web page you are on is located.
Best bet is probably not to make the filename an anchor, but trap the click on it, pick up the value, prefix it with the file://AbsolutePathToParent/ and then open that.

PS you are reinventing a wheel here, this might give some clues

http://aspnet.4guysfromrolla.com/articles/052803-1.aspx

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums