Seven price
asked on
treenode naviateurl
I would like to pull only the dynamic path and not the full path to my tree node Naviateurl
I tried server.mappath but get and error. example below.
Dim files As FileInfo() = thisDir.GetFiles("*.*")
For Each file As FileInfo In files
Dim thisFileNode As New TreeNode(file.Name, Nothing, "Images/file.gif")
thisDirNode.ChildNodes.Add (thisFileN ode)
hisFileNode.NavigateUrl = file.DirectoryName.ToStrin g + file.name
Next
('C:/inetpub/wwwroot/pdfs/ State/0108 2013/00000 /010813010 206.PDF')
to
/State/01082013/00000/0108 13010206.P DF
I tried server.mappath but get and error. example below.
Dim files As FileInfo() = thisDir.GetFiles("*.*")
For Each file As FileInfo In files
Dim thisFileNode As New TreeNode(file.Name, Nothing, "Images/file.gif")
thisDirNode.ChildNodes.Add
hisFileNode.NavigateUrl = file.DirectoryName.ToStrin
Next
('C:/inetpub/wwwroot/pdfs/
to
/State/01082013/00000/0108
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tks
AbsolutePath is the string of the file.
eg: Http://MyServer/pdfs/State/01082013/00000/010813010206.PDF
eg: Http://MyServer/pdfs/State/01082013/00000/010813010206.PDF
ASKER