List Folder Names as Hyperlinks in Datagrid

lorena

Well-known member
Joined
Oct 23, 2003
Messages
134
Location
Phoenix, Arizona
I have an aspx page that is supposed to link to an "index.aspx" page in each of several folders.
I have been able to figure out how to list the names in a datalist but I would like to list them as hyperlinks in a datagrid (/foldername/index.aspx)
Here is the code for the datalist:
Code:
Dim Directories As New IO.DirectoryInfo(Server.MapPath(""))
Dim Directory As IO.DirectoryInfo
For Each Directory In Directories.GetDirectories
  ListBox1.Items.Add(Directory.Name)            
Next
If I could get some tips for the code, I would really appreciate it. I know how to hyperlink to files, I am just having problems with linking to the file within a folder.
THanks
 
Back
Top