Ciao Cepu96.
Non so se può fare al caso tuo, ma io, in locale, ho risolto con una routine ricorsiva:
codice:
Private Sub AddDirectory(ByVal Name As String, ByRef Parent As TreeNode)
Dim Root As New IO.DirectoryInfo(Name)
Dim Par As TreeNode
For Each d As IO.DirectoryInfo In Root.GetDirectories()
Par = New TreeNode(d.Name)
AddDirectory(d.FullName, Par)
Parent.Nodes.Add(Par)
Par = Nothing
Next
For Each f As IO.FileInfo In Root.GetFiles
Parent.Nodes.Add(f.Name)
Next
End Sub
Per utilizzarla:
codice:
Dim Tree As New TreeNode("C:\Mia Cartella")
AddDirectory(TextBox1.Text, Tree)
trw.Nodes.Add(Tree) 'trw è il tuo Treeview.
Tree = Nothing
Tuttavia non avendo mai lavorato con i server web non so se può esserti d'aiuto.