|
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
|
|
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!
|
|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great. Glad that it works for you!
|
|