how to loop through a directory and hyperlink to all files

Discussion in 'ASP .Net' started by mrmagoo, Jun 9, 2006.

  1. mrmagoo

    mrmagoo Guest

    I want to loop through a directory and list all files in hyperlinks. Then
    when you click on a hyperlink, it opens the file in whatever application it
    needs. For now I need to do this with Adobe Acrobat, but I'd like to know
    how to do this for Excel, etc.

    Can anyone show me some code? I've looked on google and found only
    fragments, surprisingly.
    mrmagoo, Jun 9, 2006
    1. Advertisements

  2. John Timney \(MVP\), Jun 9, 2006
    1. Advertisements

  3. mrmagoo

    Ray Booysen Guest

    I actually wrote a usercontrol which binds the contents of a directory
    to a datagrid (ASP.NET 1.1) and displays the files and folders with
    clickable links. Its late for me now, but I'll try to post some code

    Email me to remind me. ;)
    Ray Booysen, Jun 9, 2006
  4. mrmagoo

    mrmagoo Guest

    Ooh, I'd love to see that.

    mrmagoo, Jun 9, 2006
  5. mrmagoo

    mrmagoo Guest

    Great! thanks a log.
    mrmagoo, Jun 10, 2006
  6. mrmagoo


    Jan 9, 2009
    Likes Received:
    I'm looking for something very similar.. Can you email the user control to me as well?

    Thanks so much in advance!!
    scorp, Jan 9, 2009
  7. mrmagoo


    May 6, 2011
    Likes Received:
    I am too looking for the same.Can u mail me the code??
    Revathishre, May 6, 2011
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.