Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...