473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to make hyperlinks of existing files in a directory?

Ben
Hi,

there are a lot of files (unknown number), all ending with .aspx, in
directory c:\inetpub\wwwroot\mydirectory\
How can i make a hyperlink for each of those files and make that list of
hyperlink available to the users?
Thanks for help
Ben

Nov 10 '08 #1
2 2908
Ben
ok, i found it: using Directory.GetFiles
"Ben" <be@fd.dcschreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

there are a lot of files (unknown number), all ending with .aspx, in
directory c:\inetpub\wwwroot\mydirectory\
How can i make a hyperlink for each of those files and make that list of
hyperlink available to the users?
Thanks for help
Ben

Nov 10 '08 #2
You can use this article [1] and many others found searching the web to
learn to access the file system and retrieve folder and filenames. You can
then use each filename as the value for an anchor element's href attribute
and if wanted its title text. Use a foreach loop to write the results into a
StringBuilder object you can then do something with. That's one common way
to do what you asked about and all of it --every step-- can be found
documented or blogged on the web at least 10 different ways.

[1]
http://aspalliance.com/920_Working_w...ing_ASPNET.all
"Ben" <be@fd.dcwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

there are a lot of files (unknown number), all ending with .aspx, in
directory c:\inetpub\wwwroot\mydirectory\
How can i make a hyperlink for each of those files and make that list of
hyperlink available to the users?
Thanks for help
Ben
Nov 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: circuit_breaker | last post by:
Hi, I'd like to write a loop that will create a hyperlink on a page for every single file on a directory. As an example, if my directory contains: test.txt test1.txt test2.txt,
1
by: Jon Paugh | last post by:
Hi Friendly Newsgroup Readers, I switched to another PC and pulled all my source code for my solution to my new PC, after first dutifully adding my web project directories as appropriately named...
6
by: Colleyville Alan | last post by:
I have an application that has an Access table that stores the locations of slides in a Powerpoint file. This used to work fine when there were about 4 files and 200 slides. The database would...
1
by: Darryl Neale | last post by:
I have been tasked with reviving an old database that stopped working about 3 years ago :( On one of the tabs is a list of links to other databases utilising the Hyperlink feature of MS Access...
1
by: M Garelick | last post by:
I have received a database that has absolute hyperlinks (I think that's what they're called). Here's an example: d:\office\files\mc kinzie kenneth\documents\information filed 7-15-97.pdf I...
1
by: Camel Software | last post by:
I've posted this in other places, but didn't get an answer. The project I'm working on is C#, so perhaps this is an okay place to post this. If there's a more appropriate newsgroup, I'm open to it....
6
by: divya | last post by:
I have a page name edit.asp which should expire immediately .The user cannot open this page directly he has to provide a password for entering this page.thus when the user enters edit.asp , it has...
1
by: Rajpreet | last post by:
Hi All, I have a document where in there are many hyperlinks pointing to files located in a paticular directory. My concern is, if these files are moved from this directory to some other...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.