Welcome Guest Search | Active Topics | Sign In | Register

FileExplorer.PathMappings Options
Hussain
Posted: Saturday, October 16, 2010 4:09:13 PM
Rank: Newbie
Groups: Member

Joined: 10/15/2010
Posts: 3

How to change Root Node to "Files"?
why the root node doesn't change? It shows the full path "\WebSite1\Files"


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim PathMapping As New EO.Web.PathMapping

FileExplorer1.PathMappings.Clear()
FileExplorer1.RootFolder = "~/Files"
PathMapping.Path = "C:\wwwroot\WebSite1\Files"
PathMapping.DisplayName = "Files"
PathMapping.Url = "http://localhost/WebSite1/Files"
FileExplorer1.PathMappings.Add(PathMapping)

End Sub
eo_support
Posted: Monday, October 18, 2010 9:20:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe you must also set FileExplorer1.RootFolder to a physical path. The rest of your code looks correct.

Thanks!
Hussain
Posted: Monday, October 18, 2010 1:16:21 PM
Rank: Newbie
Groups: Member

Joined: 10/15/2010
Posts: 3
It is working now. Thanks for your support.


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim PathMapping As New EO.Web.PathMapping

FileExplorer1.PathMappings.Clear()
FileExplorer1.RootFolder = Server.MapPath("~/Files")
PathMapping.Path = Server.MapPath("~/Files")
PathMapping.DisplayName = "Files"
PathMapping.Url = "http://localhost/WebSite1/Files"
FileExplorer1.PathMappings.Add(PathMapping)

End Sub
eo_support
Posted: Monday, October 18, 2010 2:33:24 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Glad that it works for you!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.