473,406 Members | 2,343 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,406 software developers and data experts.

Display Uploaded file from MS Access using ASP

Hi All,

I uploaded the Title (text), Description (text) and SourceFileName (OLE Object) into the MS Access OK however, how can i display the file for example MS word so user can view it from the website? Below is part of the ASP code that I used, the Title and Description text showed up OK but I would like to have sometype of hyperlink or something for the SourceFileName so user can view it from the website. Thanks for your help.

Response.Write("<TD>" & RS("Title") & "&nbsp;</TD>")
Response.Write("<TD>" & RS("Description") & "&nbsp;</TD>")
Response.Write("<TD><A HREF="& RS("SourceFileName") &">View</A></TD>")
Jan 25 '08 #1
5 1374
CroCrew
564 Expert 512MB
Is the stored value RS("SourceFileName") the relative path to the word document or just the name of the document?
Jan 25 '08 #2
Hi CroCrew,

Name of the document defined in MS Access as OLE Object. Hope this helps.

Please help. Thanks.
Jan 25 '08 #3
CroCrew
564 Expert 512MB
This should point you in the right direction.

http://support.microsoft.com/kb/175261
Jan 25 '08 #4
Hi CroCrew,

Thanks for your BEST recommendations. I got it work now however, when I clicked on the "View" to view the file, the file will open OK. How can I get it to open using a new window? I have added the onclick=window.open but does not help.

Below is the statement that I am currently used.

Response.Write("<TD><A HREF="& RS("DestFileName") &">View</A></TD>")

Can't get the statement below working.

Response.Write("<TD><A onclick="window.open('HREF="& RS("DestFileName") &"')">View</A></TD>")

Thanks once again for your support.
Jan 26 '08 #5
Please ignore this message. I got it work fine now. Thanks once again.
Jan 26 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Dino | last post by:
dear all, i've created an application for a customer where the customer can upload ..csv-files into a specified ftp-directory. on the server, a php-script, triggered by a cronjob, reads all the...
4
by: Shelly | last post by:
This is driving me crazy and makes no sense. Any suggestions will be appreciated. I upload an image to a staging area. I have written software to look at the images, and if accepted it is...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
2
by: Seok Bee | last post by:
Dear Experts, I'm using the asp.net 2.0 fileupload control to upload files into Access Database. The file types that being uploaded may be in word, excel or image format. Therefore, I would like...
1
by: Seok Bee | last post by:
Dear Experts, I'm using the asp.net 2.0 fileupload control to upload files into Access Database. The file types that being uploaded may be in word, excel or image format. Therefore, I would like...
4
by: RedHair | last post by:
I'd like to set up a file system for the ASP.NET 2.0 application to store user-uploaded files, since the members are more than 100,000 people, the basic requirements are as below: (1) The file...
6
by: Kimmo Laine | last post by:
Running IIS 6 on Windows 2003 server. After an update to the most recent version of php 5.1.2, for some reacon a function handling uploaded files using is_file stopped working. is_file failed...
1
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for...
9
by: tomhawkins1 | last post by:
Hi I currently have a site where users can upload files. These files can be doc, wmv, jpeg, xls, dwf, dwf and dwg. These files are uploaded to /home/**user**/uploads and not /home/...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.