473,385 Members | 1,218 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,385 software developers and data experts.

Hyperlink Files

I am grabbing file paths from a directory and storing
them into an array. The array then writes the data to a
single column table. (This works) Now I need that file
path in a URL format to navigate to the file. This
program is for an intranet and this will allow us to
click on the URL and the appropriate file will open. I
need to convert (x) into the URL. The files are coming
from the users local hard drive on 'C:\' Can someone
please help.

For Each File In files
'Me.ListBox2.Items.Add(File)
Dim row As New TableRow()
Dim cell As New TableCell()
Dim x As New LiteralControl(File)
cell.Controls.Add(x)
row.Controls.Add(cell)
Table1.Rows.Add(row)
Next

An example file path would be as follows:
x = C:\TrusJobs\2003\43000\43892\Comm\fax.pdf

Thanks
Nov 17 '05 #1
2 1656
"brian" <br****@lbrspec.com> wrote in news:03aa01c36c01$383c0310
$a*******@phx.gbl:
The files are coming
from the users local hard drive on 'C:\' Can someone
please help.


I think I posted this in a different message...

Use Server.MapPath.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 17 '05 #2
"brian" <br****@lbrspec.com> wrote in message news:<03****************************@phx.gbl>...
I am grabbing file paths from a directory and storing
them into an array. The array then writes the data to a
single column table. (This works) Now I need that file
path in a URL format to navigate to the file. This
program is for an intranet and this will allow us to
click on the URL and the appropriate file will open. I
need to convert (x) into the URL. The files are coming
from the users local hard drive on 'C:\' Can someone
please help.

For Each File In files
'Me.ListBox2.Items.Add(File)
Dim row As New TableRow()
Dim cell As New TableCell()
Dim x As New LiteralControl(File)
cell.Controls.Add(x)
row.Controls.Add(cell)
Table1.Rows.Add(row)
Next

An example file path would be as follows:
x = C:\TrusJobs\2003\43000\43892\Comm\fax.pdf

Thanks


Will the local file be in the same place on every user's computer?

Neil
Nov 17 '05 #3

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

Similar topics

2
by: laura | last post by:
I am writing an intranet and want to be able to hyperlink to all files within a specific folder AND it's subfolders. Whilst I can hyperlink to the files in the specified folder AND I can also...
5
by: Maria Joćo | last post by:
I have a table with one field that ia a hyperlink to a pdf file that opens a specific file. Since these files are very big, I would need to change the hyperlink path, so that I could send the...
3
by: Ray | last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new data into table via an input form. The form has one hyperlink field to contain a file path. In Access 2003, it appears...
3
by: Chris | last post by:
I have an access database that we share on a public drive. Also there is a folder in the same drive that has PDF documents. On my computer, I can pull up the PDF document off the hyperlink but on...
1
by: czi02 | last post by:
first, I made a page and Ive type only my name cziarel. and name it htm1 and save it on my drive d shared files. Then ive made another page and put my pictures on the page. then ive saved also it on...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
13
ADezii
by: ADezii | last post by:
Recently, there have been several questions and much confusion concerning the Topic of Hyperlinks. Specifically, Users wanted to know how to retrieve a File Name from a FileDialog Box, copy the Name...
5
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
8
by: webster5u | last post by:
Hi, I'm encounter a problem here. I hope somebody able helping me. i'm put a "log out" hyperlink overlap a image and that particular image is inside a table cell. I also try align the hyperlink on...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.